1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-09-21 11:11:23 -04:00

Removed .tell command, updated git URL, v0.16.1

This commit is contained in:
Zac Herd 2016-07-04 10:53:01 +00:00
parent 43770a8efc
commit 77cb9557b9

13
bot.py
View File

@ -33,7 +33,7 @@ from secret import token
name = "Maki" name = "Maki"
# bot version # bot version
version = "v0.16.0" version = "v0.16.1"
# text shown by .help command # text shown by .help command
helptext = """I am a bot written in Python by MrDetonia helptext = """I am a bot written in Python by MrDetonia
@ -47,7 +47,6 @@ My commands are:
.whois <user> - displays another user's info .whois <user> - displays another user's info
.welcome <message> - set your own welcome message .welcome <message> - set your own welcome message
.seen <user> - prints when user was last seen .seen <user> - prints when user was last seen
.tell <user> <message> - send message to user when they are next active
.say <msg> - say something .say <msg> - say something
.sayy <msg> - say something a e s t h e t i c a l l y .sayy <msg> - say something a e s t h e t i c a l l y
.markov <user> - generate sentence using markov chains over a user's chat history .markov <user> - 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: with open('welcomes.json', 'r') as fp:
welcomes = json.load(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 # this instance of the Discord client
client = discord.Client() client = discord.Client()
@ -159,7 +152,7 @@ def on_message(message):
elif message.content.startswith('.upskirt'): elif message.content.startswith('.upskirt'):
# link to source code # link to source code
response = 'No, don\'t look at my pantsu! Baka! <https://27b-a.xyz:55555/mrdetonia/Maki>' response = 'No, don\'t look at my pantsu! Baka! <https://gitla.in/MrDetonia/maki>'
elif message.content.startswith('.die'): elif message.content.startswith('.die'):
if message.author.id in admins: if message.author.id in admins:
@ -227,7 +220,7 @@ def on_message(message):
# delete calling message # delete calling message
yield from client.delete_message(message) yield from client.delete_message(message)
# echo aesthetic message # echo aesthetic message
response = " ".join(message.content[6:]) response = ' '.join(message.content[6:])
elif message.content.startswith('.markov '): elif message.content.startswith('.markov '):
# send typing signal to discord # send typing signal to discord