|
|
|
@ -1,5 +1,4 @@ |
|
|
|
|
"""Start the IRC bot via Django management command.""" |
|
|
|
|
|
|
|
|
|
import logging |
|
|
|
|
import signal |
|
|
|
|
|
|
|
|
@ -7,7 +6,6 @@ from django.core.management import BaseCommand |
|
|
|
|
|
|
|
|
|
from ircbot.bot import IRCBot |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log = logging.getLogger('ircbot') |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +19,6 @@ class Command(BaseCommand): |
|
|
|
|
|
|
|
|
|
def handle(self, *args, **options): |
|
|
|
|
"""Start the IRC bot and spin forever.""" |
|
|
|
|
|
|
|
|
|
irc = IRCBot() |
|
|
|
|
signal.signal(signal.SIGINT, irc.sigint_handler) |
|
|
|
|
irc.start() |
|
|
|
|