nonebot2/demo/__init__.py

14 lines
317 B
Python
Raw Normal View History

2018-07-04 16:21:01 +08:00
from os import path
import none
2018-08-13 22:34:45 +08:00
from demo import config
2018-07-04 16:21:01 +08:00
2018-07-04 19:50:42 +08:00
none.init(config)
app = none.get_bot().asgi
2018-07-04 16:21:01 +08:00
if __name__ == '__main__':
none.load_builtin_plugins()
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
2018-08-13 22:34:45 +08:00
'demo.plugins')
2018-07-04 16:21:01 +08:00
none.run(host=config.HOST, port=config.PORT)