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

13
demo/__init__.py Normal file
View 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)