Corrected syntax errors
This commit is contained in:
parent
5259b3ec3d
commit
187ee31fc8
3 changed files with 10 additions and 11 deletions
|
@ -187,7 +187,7 @@ class Interaction:
|
|||
booper_boops[boopee.id] = amount
|
||||
boops[ctx.message.author.id] = booper_boops
|
||||
|
||||
config.saveContent('boops', boops):
|
||||
config.saveContent('boops', boops)
|
||||
fmt = "{0.mention} has just booped you {1.mention}! That's {2} times now!"
|
||||
await self.bot.say(fmt.format(booper, boopee, amount))
|
||||
await self.bot.delete_message(ctx.message)
|
||||
|
|
|
@ -41,7 +41,6 @@ class Overwatch:
|
|||
return
|
||||
await self.bot.say("Searching profile information....")
|
||||
|
||||
|
||||
if hero == "":
|
||||
with aiohttp.ClientSession() as s:
|
||||
async with s.get(base_url + "{}/stats/general".format(bt)) as r:
|
||||
|
|
|
@ -102,7 +102,7 @@ class Twitch:
|
|||
else:
|
||||
twitch[ctx.message.author.id] = {'twitch_url': url, 'server_id': ctx.message.server.id,
|
||||
'notifications_on': 1, 'live': 0}
|
||||
config.saveContent('twitch', twitch):
|
||||
config.saveContent('twitch', twitch)
|
||||
await self.bot.say("I have just saved your twitch url {}".format(ctx.message.author.mention))
|
||||
|
||||
@twitch.command(name='remove', aliases=['delete'], pass_context=True, no_pm=True)
|
||||
|
@ -112,7 +112,7 @@ class Twitch:
|
|||
twitch = config.getContent('twitch')
|
||||
if twitch.get(ctx.message.author.id) is not None:
|
||||
del twitch[ctx.message.author.id]
|
||||
config.saveContent('twitch', twitch):
|
||||
config.saveContent('twitch', twitch)
|
||||
await self.bot.say("I am no longer saving your twitch URL {}".format(ctx.message.author.mention))
|
||||
else:
|
||||
await self.bot.say(
|
||||
|
@ -140,7 +140,7 @@ class Twitch:
|
|||
ctx.message.author.mention))
|
||||
else:
|
||||
twitch[ctx.message.author.id]['notifications_on'] = 1
|
||||
if config.saveContent('twitch', twitch):
|
||||
config.saveContent('twitch', twitch)
|
||||
await self.bot.say("I will notify if you go live {}, you'll get a bajillion followers I promise c:".format(
|
||||
ctx.message.author.mention))
|
||||
|
||||
|
|
Loading…
Reference in a new issue