Bug fix for gameslist when it is less than 1900
Showing
3 changed files
with
2 additions
and
2 deletions
No preview for this file type
... | @@ -378,7 +378,7 @@ Stuff: | ... | @@ -378,7 +378,7 @@ Stuff: |
378 | game_list = [] | 378 | game_list = [] |
379 | for user in data: | 379 | for user in data: |
380 | if 'games_played' in data[user]: | 380 | if 'games_played' in data[user]: |
381 | print('%s' % data[user]) | 381 | #print('%s' % data[user]['games_played']) |
382 | 382 | ||
383 | game_list += data[user]['games_played'] | 383 | game_list += data[user]['games_played'] |
384 | print('%s' % game_list) | 384 | print('%s' % game_list) |
... | @@ -390,7 +390,7 @@ Stuff: | ... | @@ -390,7 +390,7 @@ Stuff: |
390 | out_string += ' {} - {}\n'.format(game[1], game[0]) | 390 | out_string += ' {} - {}\n'.format(game[1], game[0]) |
391 | 391 | ||
392 | client.send_message(message.channel, 'The games I have seen people playing are: ') | 392 | client.send_message(message.channel, 'The games I have seen people playing are: ') |
393 | while len(out_string) > 1900: | 393 | while len(out_string) > 0: |
394 | client.send_message(message.channel, out_string[:1900]) | 394 | client.send_message(message.channel, out_string[:1900]) |
395 | out_string = out_string[1900:] | 395 | out_string = out_string[1900:] |
396 | 396 | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment