Fix summon()

Python3 issue?
This commit is contained in:
scoobybejesus 2021-07-26 11:56:37 -04:00 committed by GitHub
parent 88c8827552
commit 30ca465eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -643,8 +643,8 @@ def summon(bot, trigger):
bot.say("{0} has summoned...no one".format(trigger.nick)) bot.say("{0} has summoned...no one".format(trigger.nick))
else: else:
try: try:
trigger.group(2).decode('ascii') summoned = trigger.group(2)
bot.say("{0} has summoned {1}, ༼つ ◕_◕ ༽つ come to us {1} ༼つ ◕_◕ ༽つ".format(trigger.nick, trigger.group(2))) bot.say("{0} has summoned {1}, ༼つ ◕_◕ ༽つ come to us {1} ༼つ ◕_◕ ༽つ".format(trigger.nick, summoned))
except: except:
bot.say("Stop using non-ascii characters! (╯°□°)╯︵ ( . 0 .)") bot.say("Stop using non-ascii characters! (╯°□°)╯︵ ( . 0 .)")