mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 08:12:14 +08:00
21 lines
469 B
Python
21 lines
469 B
Python
# 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)
|
|
|
|
import none
|
|
|
|
if __name__ == '__main__':
|
|
none.init()
|
|
none.load_builtin_plugins()
|
|
none.run(host='0.0.0.0', port=8080)
|