Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sopel/modules/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import random

from sopel.module import priority, rule, thread
from sopel.module import commands, priority, rule, thread


@rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
Expand All @@ -29,3 +29,9 @@ def rude(bot, trigger):
@thread(False)
def interjection(bot, trigger):
bot.say(trigger.nick + '!')


@commands('ping')
def ping(bot, trigger):
"""Reply to ping command."""
bot.reply('Pong!')