mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
e68242170f
commit
13acfcb150
@ -98,14 +98,13 @@ class SpiceBot_AI():
|
|||||||
return aiml_response
|
return aiml_response
|
||||||
|
|
||||||
def bot_message_precipher(self, bot, trigger, message):
|
def bot_message_precipher(self, bot, trigger, message):
|
||||||
message = message.replace(str(bot.nick), "bot.nick")
|
message = message.replace(str(bot.nick), "botnick")
|
||||||
message = message.replace(str(trigger.nick), "trigger.nick")
|
message = message.replace(str(trigger.nick), "triggernick")
|
||||||
bot.say(str(message))
|
|
||||||
return message
|
return message
|
||||||
|
|
||||||
def bot_message_decipher(self, bot, trigger, aiml_response):
|
def bot_message_decipher(self, bot, trigger, aiml_response):
|
||||||
aiml_response = aiml_response.replace("bot.nick", str(bot.nick))
|
aiml_response = aiml_response.replace("botnick", str(bot.nick))
|
||||||
aiml_response = aiml_response.replace("trigger.nick", str(trigger.nick))
|
aiml_response = aiml_response.replace("triggernick", str(trigger.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):
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<aiml version="1.0">
|
<aiml version="1.0">
|
||||||
<category><pattern>BOT\.NICK</pattern>
|
<category><pattern>BOTNICK</pattern>
|
||||||
<template>That's my name, don't wear it out!</template>
|
<template>That's my name, don't wear it out!</template>
|
||||||
</category>
|
</category>
|
||||||
</aiml>
|
</aiml>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user