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

12 lines
233 B
Python
Raw Normal View History

2018-08-18 23:24:57 +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()