1
0
Fork 0
mirror of synced 2024-06-28 19:20:34 +12:00

Added required setup function

This commit is contained in:
phxntxm 2016-08-19 01:50:00 -05:00
parent 43aa1042a4
commit 942bd67c2c

View file

@ -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))