cleaning leftovers
This commit is contained in:
parent
d560cb90dc
commit
d755e4c601
4
bot.py
4
bot.py
|
@ -16,13 +16,11 @@ import collections
|
||||||
import irc
|
import irc
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
os.chdir(sys.path[0]) #do stuff relative to the installation directory
|
os.chdir(sys.path[0]) # do stuff relative to the installation directory
|
||||||
sys.path += ['plugins'] # so 'import hook' works without duplication
|
sys.path += ['plugins'] # so 'import hook' works without duplication
|
||||||
|
|
||||||
class Bot(object):
|
class Bot(object):
|
||||||
def __init__(self, nick, channel, network):
|
def __init__(self, nick, channel, network):
|
||||||
self.commands = [] # (fn, funcname, name, line), func, args
|
|
||||||
self.filters = [] #(fn, funcname, line), func
|
|
||||||
self.nick = nick
|
self.nick = nick
|
||||||
self.channel = channel
|
self.channel = channel
|
||||||
self.network = network
|
self.network = network
|
||||||
|
|
Loading…
Reference in New Issue