瀏覽代碼

moved dev mode setting to init file

tags/v2.0.0
Roxie Gibson 5 年之前
父節點
當前提交
ae0f99ff1a
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. +1
    -0
      roxbot/__init__.py
  2. +1
    -1
      roxbot/err_handle.py

+ 1
- 0
roxbot/__init__.py 查看文件

@@ -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 查看文件

@@ -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:

Loading…
取消
儲存