mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
21 lines
501 B
Python
21 lines
501 B
Python
# coding=utf-8
|
|
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import sopel.module
|
|
|
|
|
|
@sopel.module.rule(r'(?i)(I love you|loveya),? $nickname[ \t]*$')
|
|
def bot_command_love(bot, trigger):
|
|
bot.reply("You're welcome.")
|
|
|
|
|
|
@sopel.module.rule('$nickname (loveya|I love you)')
|
|
def bot_command_love_b(bot, trigger):
|
|
bot_command_love(bot, trigger)
|
|
|
|
|
|
@sopel.module.nickname_commands('loveya')
|
|
def bot_command_love_c(bot, trigger):
|
|
bot_command_love(bot, trigger)
|