8c05f710 by Barry

Bug fix for gameslist when it is less than 1900

1 parent f3b26e30
No preview for this file type
......@@ -378,7 +378,7 @@ Stuff:
game_list = []
for user in data:
if 'games_played' in data[user]:
print('%s' % data[user])
#print('%s' % data[user]['games_played'])
game_list += data[user]['games_played']
print('%s' % game_list)
......@@ -390,7 +390,7 @@ Stuff:
out_string += ' {} - {}\n'.format(game[1], game[0])
client.send_message(message.channel, 'The games I have seen people playing are: ')
while len(out_string) > 1900:
while len(out_string) > 0:
client.send_message(message.channel, out_string[:1900])
out_string = out_string[1900:]
......