Skip to content

Commit

Permalink
Fixed poor Perry spouting gibberish
Browse files Browse the repository at this point in the history
Slackbot had not been correctly updated for new SQL cache.
  • Loading branch information
gmemstr committed Feb 27, 2017
1 parent 1784ac6 commit 6786b61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.json
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
4 changes: 2 additions & 2 deletions App.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@

elif config.Get("enable_webserver") is True:
print("Webserver starting up")
# scnp = Process(target=scn.Loop()).start()
scnp = Process(target=scn.Loop()).start()
wsp = Process(target=ws.Run()).start()


elif config.Get("enable_slackbot") is True:
print("Slackbot enabled")
scnp = Process(target=scn.Loop()).start()
# scnp = Process(target=scn.Loop()).start()
sbp = Process(target=sb.Loop()).start()

else:
Expand Down
6 changes: 3 additions & 3 deletions src/Slackbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def BuildMessage(self,data):
username = "Platypus"
icon = ":desktop_computer:"
message = "Some panels may be offline!"
for s in sorted(data):
if data[4] != 1:
message = message + " Panel " + str(s)
for s in data:
if s[4] != 1:
message = message + " " + s[1] + " (" + s[2] + ")"
off = off + 1

if off > 1: post = True
Expand Down

0 comments on commit 6786b61

Please sign in to comment.