mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-09-21 05:12:34 +00:00
Restore demo
This commit is contained in:
parent
999a77c348
commit
5ea5a616a5
@ -1,20 +1,13 @@
|
|||||||
# from os import path
|
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
|
import none
|
||||||
|
from demo import config
|
||||||
|
|
||||||
|
none.init(config)
|
||||||
|
app = none.get_bot().asgi
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
none.init()
|
|
||||||
none.load_builtin_plugins()
|
none.load_builtin_plugins()
|
||||||
none.run(host='0.0.0.0', port=8080)
|
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
|
||||||
|
'demo.plugins')
|
||||||
|
none.run(host=config.HOST, port=config.PORT)
|
||||||
|
Loading…
Reference in New Issue
Block a user