mirror of
https://github.com/zhongshmx/JX3BOT.git
synced 2025-04-29 21:03:24 +00:00
24 lines
355 B
Python
24 lines
355 B
Python
# -*- coding: utf-8 -*
|
|
|
|
"""
|
|
@Software : PyCharm
|
|
@File : bot.py
|
|
@Author : 梦影
|
|
@Time : 2021/04/25 19:28:39
|
|
"""
|
|
|
|
from os import path
|
|
import nonebot
|
|
import config
|
|
|
|
nonebot.init(config)
|
|
nonebot.load_plugins(
|
|
path.join(path.dirname(__file__), 'plugin'),
|
|
'plugin'
|
|
)
|
|
bot = nonebot.get_bot()
|
|
app = bot.asgi
|
|
|
|
if __name__ == '__main__':
|
|
nonebot.run()
|