Skip to content

Commit

Permalink
Implement some suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Mar 5, 2023
1 parent fcde840 commit 86f12ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/guides/events/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ with execution.
With `wait_for()` you can block until you receive an event with a given predicate and timeout.

In the example below, the bot prompts the user to play a number guessing game.
Each iteration, the bot waits for the user to input a number, evaluates it and gives an
Each iteration, the bot waits for the user to input a number, evaluates it, then gives an
appropiate response.

```py
Expand All @@ -27,7 +27,7 @@ import hikari
@bot.listen()
async def guessing_game(event: hikari.MessageCreateEvent) -> None:

if event.is_bot:
if not event.is_human:
return

me = bot.get_me()
Expand Down Expand Up @@ -86,7 +86,7 @@ In the example below, we query the user for their 3 most favorite movies and gat
@bot.listen()
async def favorite_movie_collector(event: hikari.MessageCreateEvent) -> None:

if event.is_bot:
if not event.is_human:
return

me = bot.get_me()
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/events/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def message_listener(event: hikari.MessageCreateEvent) -> None:
```py
@bot.listen()
async def message_listener(event: hikari.MessageCreateEvent) -> None:
if event.is_bot: # Ignore messages from bots
if not event.is_human: # Ignore messages from bots
return

await event.message.respond("Hi!")
Expand Down

0 comments on commit 86f12ca

Please sign in to comment.