aboutsummaryrefslogtreecommitdiff
path: root/start.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-29 12:53:39 +0100
committerGravatar jesopo2018-09-29 12:53:39 +0100
commit47ec11bbef27eeefedb26fff678b577c5d50eb17 (patch)
tree47a1744ee18da7fc413bc89ef5c05eeefdf22540 /start.py
parentMake 'account' arg for identify command optional (diff)
signature
Add src/Cache.py, use it in modules/coins.py
Diffstat (limited to 'start.py')
-rwxr-xr-xstart.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/start.py b/start.py
index 4094bfbd..132d7fb7 100755
--- a/start.py
+++ b/start.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import argparse, os, sys, time
-from src import Config, Database, EventManager, Exports, IRCBot
+from src import Cache, Config, Database, EventManager, Exports, IRCBot
from src import IRCLineHandler, Logging, ModuleManager, Timers
def bool_input(s):
@@ -31,6 +31,7 @@ args = arg_parser.parse_args()
log = Logging.Log(args.log)
+cache = Cache.Cache()
config = Config.Config(args.config)
database = Database.Database(log, args.database)
events = events = EventManager.EventHook(log)
@@ -40,8 +41,8 @@ line_handler = IRCLineHandler.LineHandler(events, timers)
modules = modules = ModuleManager.ModuleManager(events, exports, config, log,
os.path.join(directory, "modules"))
-bot = IRCBot.Bot(directory, args, config, database, events, exports,
- line_handler, log, modules, timers)
+bot = IRCBot.Bot(directory, args, cache, config, database, events,
+ exports, line_handler, log, modules, timers)
whitelist = bot.get_setting("module-whitelist", [])
blacklist = bot.get_setting("module-blacklist", [])