Explorar el Código

moved dev mode setting to init file

tags/v2.0.0
Roxie Gibson hace 5 años
padre
commit
ae0f99ff1a
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. +1
    -0
      roxbot/__init__.py
  2. +1
    -1
      roxbot/err_handle.py

+ 1
- 0
roxbot/__init__.py Ver fichero

@@ -32,6 +32,7 @@ from roxbot.utils import blacklisted

import configparser

dev_mode = False

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

+ 1
- 1
roxbot/err_handle.py Ver fichero

@@ -40,7 +40,7 @@ from roxbot import guild_settings
class ErrHandle:
def __init__(self, bot_client):
self.bot = bot_client
self.dev = False # For debugging
self.dev = roxbot.dev_mode

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

Cargando…
Cancelar
Guardar