Massive code dump :o
This commit is contained in:
parent
185c1d5ae3
commit
9bc8901972
60 changed files with 5781 additions and 125 deletions
|
@ -3,7 +3,7 @@ import socket
|
|||
import subprocess
|
||||
import time
|
||||
|
||||
from util import hook
|
||||
from util import hook, http
|
||||
|
||||
socket.setdefaulttimeout(10) # global setting
|
||||
|
||||
|
@ -45,6 +45,11 @@ def onjoin(paraml, conn=None, bot=None):
|
|||
conn.join(channel)
|
||||
time.sleep(1) # don't flood JOINs
|
||||
|
||||
# set user-agent
|
||||
|
||||
http.ua_skybot = 'CloudBot'
|
||||
|
||||
|
||||
@hook.regex(r'^\x01VERSION\x01$')
|
||||
def version(inp, notice=None):
|
||||
notice('\x01VERSION CloudBot/DEV - https://github.com/lukeroge/CloudBot')
|
||||
|
|
Reference in a new issue