mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 00:31:14 +00:00
Rename none_demo to demo
This commit is contained in:
13
demo/__init__.py
Normal file
13
demo/__init__.py
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
Reference in New Issue
Block a user