1
0
Fork 0
mirror of synced 2024-09-30 09:17:13 +13:00

Corrected syntax errors

This commit is contained in:
phxntxm 2016-07-28 18:15:02 -05:00
parent 5259b3ec3d
commit 187ee31fc8
3 changed files with 10 additions and 11 deletions

View file

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

View file

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

View file

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