nonebot2/demo/__init__.py

21 lines
469 B
Python
Raw Normal View History

2018-08-14 23:52:52 +08:00
# from os import path
#
# import none
# from 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'),
# 'demo.plugins')
# none.run(host=config.HOST, port=config.PORT)
2018-07-04 16:21:01 +08:00
import none
if __name__ == '__main__':
2018-08-14 23:52:52 +08:00
none.init()
2018-07-04 16:21:01 +08:00
none.load_builtin_plugins()
2018-08-14 23:52:52 +08:00
none.run(host='0.0.0.0', port=8080)