diff options
| author | seth <[email protected]> | 2023-01-08 21:17:36 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-08 21:27:57 -0500 |
| commit | abcda5881361d2e219de025c95c4f8728f5caddd (patch) | |
| tree | baae0fc27b745f97c5016726ae0cf73382aa1a52 /src | |
| parent | 412e64f765c344ffb81621ce0a1104091596b1f3 (diff) | |
chore: add more type hints
Diffstat (limited to 'src')
| -rw-r--r-- | src/moyai_bot/bot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/moyai_bot/bot.py b/src/moyai_bot/bot.py index 8a152a8..b2fceca 100644 --- a/src/moyai_bot/bot.py +++ b/src/moyai_bot/bot.py @@ -14,7 +14,7 @@ async def on_ready(): @moyai.event -async def on_message(message): +async def on_message(message: discord.Message): if message.author == moyai.user: return @@ -31,12 +31,12 @@ async def on_message(message): @moyai.command() -async def ask(ctx): +async def ask(ctx: commands.Context): await ctx.send(get_random_response(moyai)) @moyai.command() -async def moyaispam(ctx): +async def moyaispam(ctx: commands.Context): msg = str() for _ in range(30): msg += str(discord.utils.get(moyai.emojis, name="moyai")) |
