forked from fsiwi-hka/fsiBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
44 lines (30 loc) · 1 KB
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /usr/bin/env python
# coding=utf8
# Add module and core folders to syspath
# TODO: Is this the right way to do this?
# see http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder
import sys
sys.path.insert(0, "core/")
sys.path.insert(0, "modules/")
_DEBUG = False
from BotCore import FSIBot
bot = FSIBot("##fsi", "fsiBot", "irc.freenode.org", 6667, _DEBUG)
#from BotModule import HelloWorldExample
#bot.addModule(HelloWorldExample())
# Add all activated modules to the bot
from BestOfModule import BestOfModule
bot.addModule(BestOfModule())
from FortuneModule import FortuneModule
bot.addModule(FortuneModule())
from MensaModule import MensaModule
bot.addModule(MensaModule())
from DeiMuddaModule import DeiMuddaModule
bot.addModule(DeiMuddaModule())
from PastebinModule import PastebinModule
bot.addModule(PastebinModule())
from BeerModule import BeerModule
bot.addModule(BeerModule())
from RRouletteModule import RRouletteModule
bot.addModule(RRouletteModule())
# Start :)
bot.start()