mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
16 lines
346 B
Python
16 lines
346 B
Python
# coding=utf-8
|
|
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import sopel.module
|
|
|
|
|
|
@sopel.module.rule(r'(?i)(ping),? $nickname[ \t]*$')
|
|
def bot_command_ping(bot, trigger):
|
|
bot.say("Pong")
|
|
|
|
|
|
@sopel.module.nickname_commands('ping')
|
|
def bot_command_ping_b(bot, trigger):
|
|
bot_command_ping(bot, trigger)
|