f28cb961 by Barry

Added bug fix for when the games list was > 100 to handle really long lists.

Added version to the !secret command.
1 parent aba82c68
......@@ -17,6 +17,8 @@ from collections import defaultdict
from nltk.tag import pos_tag
import wolframalpha
VERSION = 1.5
member_status = 'members.json'
deliveries_file = 'deliveries.json'
fortune_file = 'fortunes.json'
......@@ -384,7 +386,11 @@ Stuff:
#print('%s' % game)
out_string += ' {} - {}\n'.format(game[1], game[0])
client.send_message(message.channel, 'The games I have seen people playing are: \n{}'.format(out_string))
client.send_message(message.channel, 'The games I have seen people playing are: ')
while len(out_string) > 1900:
client.send_message(message.channel, out_string[:1900])
out_string = out_string[1900:]
return
if message.content.startswith('!aliases'):
......@@ -648,7 +654,7 @@ Stuff:
client.send_message(message.channel, '{} {}'.format(message.author.mention(), random.choice(data).encode('utf-8',errors='ignore')))
if message.content.startswith('!secret'):
client.send_message(message.channel, 'git gud {}! My source is here: http://git.savsoul.com/barry/discordbot'.format(message.author.mention()))
client.send_message(message.channel, 'git gud {}! My source is here: http://git.savsoul.com/barry/discordbot\nVersion: {}'.format(message.author.mention(), VERSION))
if message.content.startswith('!bemyirlwaifu'):
client.send_message(message.channel, 'http://orig13.deviantart.net/b25e/f/2014/175/3/d/no_waifu_no_laifu_by_imtheonenexttome-d7nsx3b.gif {}!'.format(message.author.mention()))
......