aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-16 15:46:45 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-16 15:46:45 +0530
commitf527ffb0b380b98033d2d5b73e591df1c9dc5bae (patch)
treed3c15517e31507b89935796d23ca720d41ba74e0
parentcfc770d13e60174b99c29aeddc2a357a604cbf94 (diff)
pushing all the changes before a potential redesign
-rw-r--r--bot.py15
1 files changed, 7 insertions, 8 deletions
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)