Change some logic

This commit is contained in:
Richard Chien
2018-07-04 16:21:01 +08:00
parent 89a11ab6e9
commit 1f4e5f3435
7 changed files with 89 additions and 46 deletions

View File

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