From 2a7cdebbe5f05b481b289320859ddaa69857673a Mon Sep 17 00:00:00 2001 From: Robert Miles Date: Mon, 10 Dec 2018 17:33:05 -0500 Subject: [PATCH] Fix up !latest --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 96440d0..fbe0cb2 100644 --- a/bot.py +++ b/bot.py @@ -78,10 +78,10 @@ class CosmicBot(teambot.Handler): if count > 5: count = 5 # don't spam the channel self.say(channel, "{}: Latest {} {}. (See cosmic.voyage for more!)".format(nick, count, (count == 1 and "entry" or "entries"))) - output = subprocess.check_output(["/usr/local/bin/latest",str(count)).decode("ascii").split("\n") + output = subprocess.check_output(["/usr/local/bin/latest",str(count)]).decode("ascii").split("\n") output = filter(None,output) for line in output: - self.say(channel,"{}{})".format(nick,line)) + self.say(channel,"{}: {}".format(nick,line)) if __name__=="__main__": channels = "#cosmic".split()