Update docs

This commit is contained in:
Richard Chien
2018-08-14 23:52:52 +08:00
parent d5ac3c8462
commit 7e3d09d32b
8 changed files with 113 additions and 26 deletions

View File

@ -1,13 +1,20 @@
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
from demo import config
none.init(config)
app = none.get_bot().asgi
if __name__ == '__main__':
none.init()
none.load_builtin_plugins()
none.load_plugins(path.join(path.dirname(__file__), 'plugins'),
'demo.plugins')
none.run(host=config.HOST, port=config.PORT)
none.run(host='0.0.0.0', port=8080)