diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-16 15:46:45 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-16 15:46:45 +0530 |
commit | f527ffb0b380b98033d2d5b73e591df1c9dc5bae (patch) | |
tree | d3c15517e31507b89935796d23ca720d41ba74e0 /bot.py | |
parent | cfc770d13e60174b99c29aeddc2a357a604cbf94 (diff) |
pushing all the changes before a potential redesign
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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) |