nonebot2/docs/guide/code/awesome-bot-5/bot.py

12 lines
245 B
Python
Raw Normal View History

2018-08-22 23:29:28 +08:00
from os import path
2018-12-27 20:23:45 +08:00
import nonebot
2018-08-22 23:29:28 +08:00
import config
if __name__ == '__main__':
2018-12-27 20:23:45 +08:00
nonebot.init(config)
nonebot.load_plugins(path.join(path.dirname(__file__), 'awesome', 'plugins'),
2018-08-22 23:29:28 +08:00
'awesome.plugins')
2018-12-27 20:23:45 +08:00
nonebot.run()