From 77cb9557b900b5f5e9ba5d8a0df2e5ca1830370a Mon Sep 17 00:00:00 2001 From: Zac Herd Date: Mon, 4 Jul 2016 10:53:01 +0000 Subject: [PATCH] Removed .tell command, updated git URL, v0.16.1 --- bot.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bot.py b/bot.py index cedad1f..ad118c1 100644 --- a/bot.py +++ b/bot.py @@ -33,7 +33,7 @@ from secret import token name = "Maki" # bot version -version = "v0.16.0" +version = "v0.16.1" # text shown by .help command helptext = """I am a bot written in Python by MrDetonia @@ -47,7 +47,6 @@ My commands are: .whois - displays another user's info .welcome - set your own welcome message .seen - prints when user was last seen -.tell - send message to user when they are next active .say - say something .sayy - say something a e s t h e t i c a l l y .markov - generate sentence using markov chains over a user's chat history @@ -76,12 +75,6 @@ if os.path.isfile('welcomes.json'): with open('welcomes.json', 'r') as fp: welcomes = json.load(fp) -# messages left for users -tells = {} -if os.path.isfile('tells.json'): - with open('tells.json', 'r') as fp: - tells = json.load(fp) - # this instance of the Discord client client = discord.Client() @@ -159,7 +152,7 @@ def on_message(message): elif message.content.startswith('.upskirt'): # link to source code - response = 'No, don\'t look at my pantsu! Baka! ' + response = 'No, don\'t look at my pantsu! Baka! ' elif message.content.startswith('.die'): if message.author.id in admins: @@ -227,7 +220,7 @@ def on_message(message): # delete calling message yield from client.delete_message(message) # echo aesthetic message - response = " ".join(message.content[6:]) + response = ' '.join(message.content[6:]) elif message.content.startswith('.markov '): # send typing signal to discord