renamerename
This commit is contained in:
parent
585f4f2c4a
commit
9467014bf9
4 changed files with 0 additions and 0 deletions
18
plugins/core_ctcp.py
Executable file
18
plugins/core_ctcp.py
Executable file
|
@ -0,0 +1,18 @@
|
|||
import time
|
||||
from util import hook
|
||||
|
||||
|
||||
# CTCP responses
|
||||
@hook.regex(r'^\x01VERSION\x01$')
|
||||
def ctcp_version(inp, notice=None):
|
||||
notice('\x01VERSION: CloudBot - http://git.io/cloudbotirc')
|
||||
|
||||
|
||||
@hook.regex(r'^\x01PING\x01$')
|
||||
def ctcp_ping(inp, notice=None):
|
||||
notice('\x01PING: PONG')
|
||||
|
||||
|
||||
@hook.regex(r'^\x01TIME\x01$')
|
||||
def ctcp_time(inp, notice=None):
|
||||
notice('\x01TIME: The time is: %s' % time.strftime("%r", time.localtime()))
|
Reference in a new issue