From 942bd67c2ce682f639ca943a479dbef917ef0fae Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 19 Aug 2016 01:50:00 -0500 Subject: [PATCH] Added required setup function --- cogs/steam.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cogs/steam.py b/cogs/steam.py index 0dd7af1..553d541 100644 --- a/cogs/steam.py +++ b/cogs/steam.py @@ -60,5 +60,10 @@ class Steam: data = response.json() stuff_to_print = ['total_kills', 'total_deaths', 'total_wins', 'total_mvps'] - stats = "\n".join("{}: {}".format(d['name'], d['value']) for d in data['playerstats']['stats'] if d['name'] in stuff_to_print) + stats = "\n".join( + "{}: {}".format(d['name'], d['value']) for d in data['playerstats']['stats'] if d['name'] in stuff_to_print) await self.bot.say("CS:GO Stats for user {}: \n```\n{}```".format(user, stats)) + + +def setup(bot): + bot.add_cog(Steam(bot))