Fixed the error for double on/off
This commit is contained in:
parent
0d00cf1685
commit
2c07b3c32d
|
@ -118,7 +118,7 @@ class Twitch:
|
||||||
await self.bot.say("I do not have your twitch URL added {}. You can save your twitch url with !twitch add".format(ctx.message.author.mention))
|
await self.bot.say("I do not have your twitch URL added {}. You can save your twitch url with !twitch add".format(ctx.message.author.mention))
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
return
|
return
|
||||||
elif result == "1":
|
elif result['notifications_on']:
|
||||||
await self.bot.say("What do you want me to do, send two notifications? Not gonna happen {}".format(ctx.message.author.mention))
|
await self.bot.say("What do you want me to do, send two notifications? Not gonna happen {}".format(ctx.message.author.mention))
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
return
|
return
|
||||||
|
@ -139,7 +139,7 @@ class Twitch:
|
||||||
await self.bot.say("I do not have your twitch URL added {}. You can save your twitch url with !twitch add".format(ctx.message.author.mention))
|
await self.bot.say("I do not have your twitch URL added {}. You can save your twitch url with !twitch add".format(ctx.message.author.mention))
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
return
|
return
|
||||||
elif result == "0":
|
elif not result['notifications_on']:
|
||||||
await self.bot.say("I am already set to not notify if you go live! Pay attention brah {}".format(ctx.message.author.mention))
|
await self.bot.say("I am already set to not notify if you go live! Pay attention brah {}".format(ctx.message.author.mention))
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue