From abcda5881361d2e219de025c95c4f8728f5caddd Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 8 Jan 2023 21:17:36 -0500 Subject: chore: add more type hints --- src/moyai_bot/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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")) -- cgit v1.2.3