Rename none_demo to demo

This commit is contained in:
Richard Chien 2018-08-13 22:34:45 +08:00
parent 7a5791e10d
commit 1a4afb3c10
8 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<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="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<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="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />

View File

@ -1,7 +1,7 @@
from os import path
import none
from none_demo import config
from demo import config
none.init(config)
app = none.get_bot().asgi
@ -9,5 +9,5 @@ app = none.get_bot().asgi
if __name__ == '__main__':
none.load_builtin_plugins()
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
'none_demo.plugins')
'demo.plugins')
none.run(host=config.HOST, port=config.PORT)