Browse Source

Fix error in fortune command

master
Robert Miles 3 years ago
parent
commit
e8c758cd0f
  1. 2
      bot.py

2
bot.py

@ -82,7 +82,7 @@ class CosmicBot(teambot.Handler):
for line in output:
self.say(channel,"{}: {}".format(nick,line))
def on_fortune(self,channel,nick):
output = subprocess.check_output(["/usr/games/fortune",str(count)]).decode("ascii").split("\n")
output = subprocess.check_output(["/usr/games/fortune"]).decode("ascii").split("\n")
output = filter(None,output)
for line in output:
self.say(channel,"{}".format(line))

Loading…
Cancel
Save