mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
21 lines
516 B
Python
21 lines
516 B
Python
# coding=utf-8
|
|
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import sopel.module
|
|
|
|
|
|
@sopel.module.rule(r'(?i)(thank you|thanks),? $nickname[ \t]*$')
|
|
def bot_command_thanks(bot, trigger):
|
|
bot.osd(trigger.nick + ",You're welcome.")
|
|
|
|
|
|
@sopel.module.rule('$nickname (thank you)')
|
|
def bot_command_thanks_b(bot, trigger):
|
|
bot_command_thanks(bot, trigger)
|
|
|
|
|
|
@sopel.module.nickname_commands('thanks')
|
|
def bot_command_thanks_c(bot, trigger):
|
|
bot_command_thanks(bot, trigger)
|