Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
discordbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8c05f710
authored
2016-01-21 01:06:28 +0000
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fix for gameslist when it is less than 1900
1 parent
f3b26e30
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
db.sqlite3
hellsbot.py
members.json
db.sqlite3
View file @
8c05f71
No preview for this file type
hellsbot.py
View file @
8c05f71
...
...
@@ -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
)
>
190
0
:
while
len
(
out_string
)
>
0
:
client
.
send_message
(
message
.
channel
,
out_string
[:
1900
])
out_string
=
out_string
[
1900
:]
...
...
members.json
View file @
8c05f71
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment