From f527ffb0b380b98033d2d5b73e591df1c9dc5bae Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 16 Dec 2020 15:46:45 +0530 Subject: pushing all the changes before a potential redesign --- bot.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'bot.py') diff --git a/bot.py b/bot.py index e54c787..2c43283 100644 --- a/bot.py +++ b/bot.py @@ -68,22 +68,21 @@ async def on_message(message): if message.content == CALL + 'info': response = get_info() await message.channel.send(response) + + if message.content == CALL + 'repo': + response = 'My source code: https://github.com/MikunoNaka/ZeHenti-bot.git' + await message.channel.send(response) # send help message if message.content == CALL + 'help': response = HELP_MESSAGE await message.channel.send(response) - - -# cultured stuff -@client.event -async def on_message(message): - if message.author == client.user: - return - + + # cultured stuff if message.content.split()[0] == CALL + 'find': # find title of henti sauce = (''.join(message.content.split()[1:])) response = H.find_title(sauce) await message.channel.send(response) + client.run(TOKEN) -- cgit v1.2.3