diff options
author | 2022-10-02 15:25:30 +0100 | |
---|---|---|
committer | 2022-10-02 15:25:30 +0100 | |
commit | 4a13e3a500595ea4bcf4234f2f2e4656ca857cdb (patch) | |
tree | 1b636e126a9b169b88d23d84d4762d4505570db6 | |
parent | Bump rapidfuzz from 2.10.1 to 2.10.2 (#1105) (diff) | |
parent | Fix position-only arg in madlibs.py (diff) |
Merge pull request #1110 from python-discord/fix-issue-1106
Fix position-only arg in hangman & madlibs command.
-rw-r--r-- | bot/exts/fun/hangman.py | 2 | ||||
-rw-r--r-- | bot/exts/fun/madlibs.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/hangman.py b/bot/exts/fun/hangman.py index 6c4ed69c..f385a955 100644 --- a/bot/exts/fun/hangman.py +++ b/bot/exts/fun/hangman.py @@ -110,7 +110,7 @@ class Hangman(commands.Cog): try: message = await self.bot.wait_for( - event="message", + "message", timeout=60.0, check=check ) diff --git a/bot/exts/fun/madlibs.py b/bot/exts/fun/madlibs.py index 5f3e0572..075dde75 100644 --- a/bot/exts/fun/madlibs.py +++ b/bot/exts/fun/madlibs.py @@ -93,7 +93,7 @@ class Madlibs(commands.Cog): await original_message.edit(embed=madlibs_embed) try: - message = await self.bot.wait_for(event="message", check=author_check, timeout=TIMEOUT) + message = await self.bot.wait_for("message", check=author_check, timeout=TIMEOUT) except TimeoutError: timeout_embed = discord.Embed( title=choice(NEGATIVE_REPLIES), |