nonebot2/none_demo/__init__.py
2018-07-04 19:50:42 +08:00

14 lines
327 B
Python

from os import path
import none
from none_demo import config
none.init(config)
app = none.get_bot().asgi
if __name__ == '__main__':
none.load_builtin_plugins()
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
'none_demo.plugins')
none.run(host=config.HOST, port=config.PORT)