aboutsummaryrefslogtreecommitdiff
path: root/start.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-30 17:05:46 +0100
committerGravatar jesopo2019-05-30 17:05:46 +0100
commit123671aac9f0e3599a32ff0dd9856abd9cf145b4 (patch)
treeedb97974204027cab6bfdb3a5d6a09314e386405 /start.py
parent'alias' -> 'str(server)' as `alias` does not exist in the current context (diff)
signature
Log BitBot and Python version at startup
Diffstat (limited to 'start.py')
-rwxr-xr-xstart.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/start.py b/start.py
index 59c9fc0d..218edc74 100755
--- a/start.py
+++ b/start.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-import argparse, faulthandler, os, sys, time
+import argparse, faulthandler, os, platform, sys, time
from src import Cache, Config, Database, EventManager, Exports, IRCBot
from src import Logging, ModuleManager, Timers, utils
@@ -48,6 +48,10 @@ if not log_level:
log_level = "debug" if args.verbose else "info"
log = Logging.Log(not args.no_logging, log_level, args.log_dir)
+
+log.info("Starting BitBot %s (Python v%s)",
+ [IRCBot.VERSION, platform.python_version()])
+
database = Database.Database(log, args.database)
if args.add_server: