This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
CloudBot/plugins/ctcp.py

23 lines
488 B
Python
Raw Normal View History

2012-02-29 03:32:01 +01:00
from util import hook
2012-02-29 06:47:11 +01:00
2012-02-29 03:32:01 +01:00
# CTCP responses
@hook.regex(r'^\x01VERSION\x01$')
def ctcpversion(inp, notice=None):
notice('\x01VERSION: CloudBot - http://git.io/cloudbot')
2012-02-29 06:47:11 +01:00
2012-02-29 03:32:01 +01:00
@hook.regex(r'^\x01PING\x01$')
def ctcpping(inp, notice=None):
notice('\x01PING: PONG')
2012-02-29 06:47:11 +01:00
2012-02-29 03:32:01 +01:00
@hook.regex(r'^\x01TIME\x01$')
def ctcptime(inp, notice=None):
notice('\x01TIME: GET A WATCH')
2012-02-29 06:47:11 +01:00
2012-02-29 03:32:01 +01:00
@hook.regex(r'^\x01FINGER\x01$')
def ctcpfinger(inp, notice=None):
notice('\x01FINGER: WHERE ARE YOU PUTTING THAT')