mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +08:00
Rename none_demo to demo
This commit is contained in:
parent
7a5791e10d
commit
1a4afb3c10
4
.idea/runConfigurations/demo.xml
generated
4
.idea/runConfigurations/demo.xml
generated
@ -7,12 +7,12 @@
|
|||||||
<env name="PYTHONUNBUFFERED" value="1" />
|
<env name="PYTHONUNBUFFERED" value="1" />
|
||||||
</envs>
|
</envs>
|
||||||
<option name="SDK_HOME" value="" />
|
<option name="SDK_HOME" value="" />
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/none_demo" />
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/demo" />
|
||||||
<option name="IS_MODULE_SDK" value="true" />
|
<option name="IS_MODULE_SDK" value="true" />
|
||||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/none_demo/__init__.py" />
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/demo/__init__.py" />
|
||||||
<option name="PARAMETERS" value="" />
|
<option name="PARAMETERS" value="" />
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
<option name="EMULATE_TERMINAL" value="false" />
|
<option name="EMULATE_TERMINAL" value="false" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
import none
|
import none
|
||||||
from none_demo import config
|
from demo import config
|
||||||
|
|
||||||
none.init(config)
|
none.init(config)
|
||||||
app = none.get_bot().asgi
|
app = none.get_bot().asgi
|
||||||
@ -9,5 +9,5 @@ app = none.get_bot().asgi
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
none.load_builtin_plugins()
|
none.load_builtin_plugins()
|
||||||
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
|
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
|
||||||
'none_demo.plugins')
|
'demo.plugins')
|
||||||
none.run(host=config.HOST, port=config.PORT)
|
none.run(host=config.HOST, port=config.PORT)
|
Loading…
Reference in New Issue
Block a user