mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2026-04-16 03:02:41 +08:00
更新于 07-08 01:40
This commit is contained in:
@@ -15,13 +15,13 @@ from asyncio import exceptions
|
|||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
format='%(asctime)s-%(name)s-%(levelname)s=> [%(funcName)s] %(message)s ', level=logging.INFO)
|
format='%(asctime)s-%(name)s-%(levelname)s=> [%(funcName)s] %(message)s ', level=logging.INFO)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
_JdDir = '/jd'
|
_JdDir = '/root/jd'
|
||||||
_ConfigDir = _JdDir + '/config'
|
_ConfigDir = _JdDir + '/config'
|
||||||
_ScriptsDir = _JdDir + '/scripts'
|
_ScriptsDir = _JdDir + '/scripts'
|
||||||
_LogDir = _JdDir + '/log'
|
_LogDir = _JdDir + '/log'
|
||||||
_ThirdpardDir = _JdDir +'/thirdpard'
|
_ThirdpardDir = _JdDir +'/thirdpard'
|
||||||
# 频道id/用户id
|
# 频道id/用户id
|
||||||
with open('/jd/config/bot.json') as f:
|
with open('/root/jd/config/bot.json') as f:
|
||||||
bot = json.load(f)
|
bot = json.load(f)
|
||||||
chat_id = bot['user_id']
|
chat_id = bot['user_id']
|
||||||
# 机器人 TOKEN
|
# 机器人 TOKEN
|
||||||
|
|||||||
Reference in New Issue
Block a user