1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Fixed the error for double on/off

This commit is contained in:
Phxntxm 2016-07-10 13:36:57 -05:00
parent c710dc153f
commit 0d00cf1685

View file

@ -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))
config.closeConnection()
return
elif result:
elif result == "1":
await self.bot.say("What do you want me to do, send two notifications? Not gonna happen {}".format(ctx.message.author.mention))
config.closeConnection()
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))
config.closeConnection()
return
elif not result:
elif result == "0":
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()
return