mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
Adjust AI
This commit is contained in:
parent
2d0029de0b
commit
056a290f80
@ -10,18 +10,52 @@ from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, googlesearch, bot_
|
|||||||
from sopel_modules.SpiceBot_Events.System import bot_events_check
|
from sopel_modules.SpiceBot_Events.System import bot_events_check
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
|
||||||
|
def bot_command_hello(bot, trigger):
|
||||||
|
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")
|
||||||
|
punctuation = spicemanip.main(['', '!', '?'], "random")
|
||||||
|
bot.osd(hello + ' ' + trigger.nick + punctuation)
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.nickname_commands('hello')
|
||||||
|
def bot_command_hello_b(bot, trigger):
|
||||||
|
bot_command_hello(bot, trigger)
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule('$nickname!')
|
||||||
|
def exclaim(bot, trigger):
|
||||||
|
bot.say(trigger.nick + '!')
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule('$nickname?')
|
||||||
|
def imhere(bot, trigger):
|
||||||
|
bot.say("I'm here, " + trigger.nick)
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule(r'(?i)(Fuck|Screw) (you|off),? $nickname[ \t]*$')
|
||||||
|
def bot_command_srewyou(bot, trigger):
|
||||||
|
bot.osd("Watch your mouth, " + trigger.nick + ", or I'll tell your mother!")
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule(r'(?i)(Damnit|Lazy)? $nickname[ \t]*$')
|
||||||
|
def bot_command_damnlazy(bot, trigger):
|
||||||
|
bot.osd("I do not tell you how to do your job, " + trigger.nick + "!!!")
|
||||||
|
|
||||||
|
|
||||||
|
@sopel.module.rule('$nickname is lazy')
|
||||||
|
def bot_command_damnlazy_b(bot, trigger):
|
||||||
|
bot_command_damnlazy(bot, trigger)
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.nickname_commands('(.*)')
|
@sopel.module.nickname_commands('(.*)')
|
||||||
def bot_command_gender(bot, trigger):
|
def bot_command_nick(bot, trigger):
|
||||||
|
|
||||||
while not bot_events_check(bot, ['1004', '2002']):
|
while not bot_events_check(bot, ['1004', '2002']):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
triggerargs, triggercommand = sopel_triggerargs(bot, trigger, 'nickname_command')
|
triggerargs, triggercommand = sopel_triggerargs(bot, trigger, 'nickname_command')
|
||||||
|
|
||||||
if not triggercommand:
|
if not triggercommand or triggercommand in bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys():
|
||||||
bot.bot.osd("I don't know what you are asking me to do!")
|
|
||||||
return
|
|
||||||
if str(bot.nick) + " " + triggercommand in bot.memory['SpiceBot_CommandsQuery']['commands']["nickname"].keys():
|
|
||||||
return
|
return
|
||||||
|
|
||||||
specialcomposs = spicemanip.main(triggerargs, 0).lower()
|
specialcomposs = spicemanip.main(triggerargs, 0).lower()
|
||||||
@ -59,6 +93,9 @@ def bot_command_gender(bot, trigger):
|
|||||||
bot.osd("Not sure what you want me to look for.")
|
bot.osd("Not sure what you want me to look for.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# if specialcomposs.lower().startswith("what time is it"):
|
||||||
|
# TODO
|
||||||
|
|
||||||
# elif specialcomposs.lower().startswith(tuple(["have you seen"])):
|
# elif specialcomposs.lower().startswith(tuple(["have you seen"])):
|
||||||
# posstarget = spicemanip.main(triggerargs, 4) or 0
|
# posstarget = spicemanip.main(triggerargs, 4) or 0
|
||||||
# message = seen_search(bot, botcom, posstarget)
|
# message = seen_search(bot, botcom, posstarget)
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
# coding=utf-8
|
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
||||||
|
|
||||||
import sopel.module
|
|
||||||
|
|
||||||
import spicemanip
|
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
|
|
||||||
def bot_command_hello(bot, trigger):
|
|
||||||
hello = spicemanip.main(['Hi', 'Hey', 'Hello'], "random")
|
|
||||||
punctuation = spicemanip.main(['', '!', '?'], "random")
|
|
||||||
bot.osd(hello + ' ' + trigger.nick + punctuation)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
# coding=utf8
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
||||||
|
|
||||||
from .FriendlyBot import *
|
|
||||||
|
|
||||||
__author__ = 'Sam Zick'
|
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
|
||||||
__version__ = '0.1.1'
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
# coding=utf-8
|
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
||||||
|
|
||||||
import sopel.module
|
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.rule(r'(?i)(Fuck|Screw) (you|off),? $nickname[ \t]*$')
|
|
||||||
def bot_command_srewyou(bot, trigger):
|
|
||||||
bot.osd("Watch your mouth, " + trigger.nick + ", or I'll tell your mother!")
|
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.rule(r'(?i)(Damnit|Lazy)? $nickname[ \t]*$')
|
|
||||||
def bot_command_damnlazy(bot, trigger):
|
|
||||||
bot.osd("I do not tell you how to do your job, " + trigger.nick + "!!!")
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
# coding=utf8
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
||||||
|
|
||||||
from .InsultHandler import *
|
|
||||||
|
|
||||||
__author__ = 'Sam Zick'
|
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
|
||||||
__version__ = '0.1.1'
|
|
||||||
Loading…
Reference in New Issue
Block a user