mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +08:00
17 lines
324 B
Python
17 lines
324 B
Python
|
from os import path
|
||
|
|
||
|
import none
|
||
|
|
||
|
from none_demo import config
|
||
|
|
||
|
bot = none.create_bot(config)
|
||
|
|
||
|
none.load_builtin_plugins()
|
||
|
plugin_dir = path.join(path.dirname(__file__), 'plugins')
|
||
|
none.load_plugins(plugin_dir, 'none_demo.plugins')
|
||
|
|
||
|
app = bot.asgi
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
bot.run(host=config.HOST, port=config.PORT)
|