nonebot2/demo/__init__.py

14 lines
317 B
Python
Raw Normal View History

2018-08-15 15:43:33 +00:00
from os import path
2018-07-04 08:21:01 +00:00
import none
2018-08-15 15:43:33 +00:00
from demo import config
none.init(config)
app = none.get_bot().asgi
2018-07-04 08:21:01 +00:00
if __name__ == '__main__':
none.load_builtin_plugins()
2018-08-15 15:43:33 +00:00
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
'demo.plugins')
none.run(host=config.HOST, port=config.PORT)