Skip to content

Commit

Permalink
fix(docs): Update communicating-with-other-agents.mdx (#996)
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Croft <[email protected]>
  • Loading branch information
EdwardChhun and devjsc authored Oct 17, 2024
1 parent 01d39fd commit d3aa142
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Let's start by defining the script for **sigmar**.
```py copy
@sigmar.on_interval(period=2.0)
async def send_message(ctx: Context):
await ctx.send(RECIPIENT_ADDRESS, Message(message="hello there slaanesh")
await ctx.send(RECIPIENT_ADDRESS, Message(message="hello there slaanesh"))
```

Here, the `.on_interval()` decorator schedules the `send_message()` function to be run every 2 seconds. Inside the function, there is an asynchronous call indicated by the `ctx.send()` method. This call sends a message with the content `"hello there slaanesh"` to the `RECIPIENT_ADDRESS`.
Expand Down

0 comments on commit d3aa142

Please sign in to comment.