diff --git a/App.py b/App.py index faa3a31..e920ec3 100644 --- a/App.py +++ b/App.py @@ -22,13 +22,13 @@ # The order in which the processes are started # is important, since the flask process effectively # blocks the rest of the code from running (wtfkwbtihiw) - scnp = Thread(target=scn.Fetch()).start() + scnp = Thread(target=scn.Loop()).start() sbp = Thread(target=sb.Loop()).start() wsp = Thread(target=ws.Run()).start() elif config.Get("enable_webserver") is True: print("Webserver starting up") - #scnp = Thread(target=scn.Loop()).start() + scnp = Thread(target=scn.Loop()).start() wsp = Thread(target=ws.Run()).start() elif config.Get("enable_slackbot") is True: diff --git a/src/Slackbot.py b/src/Slackbot.py index c48dd06..0322b37 100644 --- a/src/Slackbot.py +++ b/src/Slackbot.py @@ -16,7 +16,7 @@ def Post(self,message, channel, username, icon): username=username, icon_emoji=icon) - def ServerReport(self,data): + def ServerReport(self): servers = sql.Get() post = True off = 0