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

14 lines
245 B
Python
Raw Normal View History

2018-08-19 20:51:46 +08:00
from os import path
2018-12-27 20:23:45 +08:00
import nonebot
2018-08-19 20:51:46 +08:00
import config
if __name__ == '__main__':
2018-12-27 20:23:45 +08:00
nonebot.init(config)
2019-01-26 22:21:51 +08:00
nonebot.load_plugins(
path.join(path.dirname(__file__), 'awesome', 'plugins'),
'awesome.plugins'
)
2018-12-27 20:23:45 +08:00
nonebot.run()