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

12 lines
233 B
Python
Raw Normal View History

2018-08-21 00:30:39 +08:00
from os import path
import none
import config
if __name__ == '__main__':
none.init(config)
none.load_plugins(path.join(path.dirname(__file__), 'awesome', 'plugins'),
'awesome.plugins')
none.run()