Skip to content

Commit

Permalink
config.py: Remove corobo as default prefix
Browse files Browse the repository at this point in the history
Removed `corobo` as default `BOT_PREFIX`
and added a check for empty `BOT_PREFIX`

Closes #365
  • Loading branch information
Sladyn authored and Makman2 committed May 25, 2019
1 parent 45ef859 commit 87c35cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
BOT_LOG_FILE = os.path.join(BOT_ROOT, 'errbot.log')
BOT_LOG_LEVEL = logging.DEBUG

BOT_PREFIX = os.environ.get('BOT_PREFIX', 'corobo ')
if not os.environ.get('BOT_PREFIX'):
raise SystemExit("Environment variable BOT_PREFIX not specified")

BOT_PREFIX = os.environ.get('BOT_PREFIX')

if 'COBOT_PREFIX' in os.environ:
BOT_PREFIX = os.environ['COBOT_PREFIX']
Expand Down

0 comments on commit 87c35cb

Please sign in to comment.