diff --git a/src/discordbot/app.py b/src/discordbot/app.py index 5038b29..0f542ee 100644 --- a/src/discordbot/app.py +++ b/src/discordbot/app.py @@ -16,12 +16,15 @@ client = discord.Client(intents=intents) async def on_ready(): print(f'Logged in as {client.user}') +async def hello(message): + await message.channel.send('Hello!') + @client.event async def on_message(message): if message.author == client.user: return if message.content.startswith('!hello'): - await message.channel.send('Hello!') + await hello(message) client.run(bot_token) \ No newline at end of file