Fix relative imports
This commit is contained in:
parent
42f737f59c
commit
3601f96f24
|
@ -1,4 +1,4 @@
|
|||
from bot import TeamBot
|
||||
from handler import *
|
||||
from .bot import TeamBot
|
||||
from .handler import *
|
||||
|
||||
__all__ = ["TeamBot","Handler","CommandHandlerMixin"]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Contains the bot class.
|
||||
|
||||
import irc.bot
|
||||
import handler
|
||||
from .handler import Handler
|
||||
|
||||
## The main bot class.
|
||||
#
|
||||
|
@ -15,7 +15,7 @@ class TeamBot(irc.bot.SingleServerIRCBot):
|
|||
# @param nickname A nickname for the bot.
|
||||
# @param server The server to connect to.
|
||||
# @param chandler The Handler subclass to use.
|
||||
def __init__(self, channels, nickname, server, port=6667, chandler=handler.Handler):
|
||||
def __init__(self, channels, nickname, server, port=6667, chandler=Handler):
|
||||
irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname)
|
||||
self.chanlist = channels
|
||||
self.bot_nick = nickname
|
||||
|
|
Reference in New Issue