Browse Source

moved dev mode setting to init file

tags/v2.0.0
Roxie Gibson 5 years ago
parent
commit
ae0f99ff1a
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      roxbot/__init__.py
  2. +1
    -1
      roxbot/err_handle.py

+ 1
- 0
roxbot/__init__.py View File



import configparser import configparser


dev_mode = False


settings = configparser.ConfigParser() settings = configparser.ConfigParser()
settings.read("roxbot/settings/preferences.ini") settings.read("roxbot/settings/preferences.ini")

+ 1
- 1
roxbot/err_handle.py View File

class ErrHandle: class ErrHandle:
def __init__(self, bot_client): def __init__(self, bot_client):
self.bot = bot_client self.bot = bot_client
self.dev = False # For debugging
self.dev = roxbot.dev_mode


async def on_error(self, event): async def on_error(self, event):
if self.dev: if self.dev:

Loading…
Cancel
Save