nonebot2/docs/guide/code/awesome-bot-6/bot.py
2018-12-27 20:23:45 +08:00

12 lines
245 B
Python

from os import path
import nonebot
import config
if __name__ == '__main__':
nonebot.init(config)
nonebot.load_plugins(path.join(path.dirname(__file__), 'awesome', 'plugins'),
'awesome.plugins')
nonebot.run()