Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Trevor Cappallo
TE4bot
Commits
7e5bed53
Commit
7e5bed53
authored
Nov 03, 2021
by
Trevor Cappallo
Browse files
local output redundancy curbed
parent
43d323bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
te4.py
te4.py
+6
-1
No files found.
te4.py
View file @
7e5bed53
...
...
@@ -17,11 +17,16 @@ reSummary = re.compile('^\s*(.*)\*\s+([0-9a-fA-F]+)\s+([0-9a-fA-F]+)\s+([0-9a-fA
oldGames
=
[]
newGames
=
[]
recentlySaid
=
[]
lastData
=
""
currentGames
=
{}
cnt
=
0
def
parse_server_poll
(
data
):
print
(
data
)
global
lastData
if
data
!=
lastData
:
print
(
data
)
lastData
=
data
m
=
reSummary
.
match
(
data
)
(
listing
,
summary
)
=
(
m
.
groups
()[
0
],
m
.
groups
()[
1
:])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment