Fix relative imports

This commit is contained in:
Robert Miles 2018-06-25 16:16:33 -04:00
parent 42f737f59c
commit 3601f96f24
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
from bot import TeamBot
from handler import *
from .bot import TeamBot
from .handler import *
__all__ = ["TeamBot","Handler","CommandHandlerMixin"]

View File

@ -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