Added required setup function
This commit is contained in:
parent
43aa1042a4
commit
942bd67c2c
1 changed files with 6 additions and 1 deletions
|
@ -60,5 +60,10 @@ class Steam:
|
||||||
data = response.json()
|
data = response.json()
|
||||||
|
|
||||||
stuff_to_print = ['total_kills', 'total_deaths', 'total_wins', 'total_mvps']
|
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))
|
await self.bot.say("CS:GO Stats for user {}: \n```\n{}```".format(user, stats))
|
||||||
|
|
||||||
|
|
||||||
|
def setup(bot):
|
||||||
|
bot.add_cog(Steam(bot))
|
||||||
|
|
Loading…
Reference in a new issue