mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
not.nick
This commit is contained in:
parent
92a8159a1a
commit
15bfd991ce
@ -98,13 +98,13 @@ class SpiceBot_AI():
|
|||||||
return aiml_response
|
return aiml_response
|
||||||
|
|
||||||
def bot_message_precipher(self, bot, message):
|
def bot_message_precipher(self, bot, message):
|
||||||
# while bot.nick in message:
|
while str(bot.nick) in message.upper():
|
||||||
# message.replace(bot.nick, "bot.nick")
|
message = message.replace(str(bot.nick), "bot.nick")
|
||||||
return message
|
return message
|
||||||
|
|
||||||
def bot_message_decipher(self, bot, aiml_response):
|
def bot_message_decipher(self, bot, aiml_response):
|
||||||
# while "bot.nick" in aiml_response:
|
while "bot.nick" in aiml_response:
|
||||||
# aiml_response.replace("bot.nick", bot.nick)
|
aiml_response = aiml_response.replace("bot.nick", str(bot.nick))
|
||||||
return aiml_response
|
return aiml_response
|
||||||
|
|
||||||
def check_user_import(self, nick, nick_id=None):
|
def check_user_import(self, nick, nick_id=None):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user