mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 01:40:56 +00:00
🐛 fix 通道无法在进程内传递消息的问题
This commit is contained in:
7
main.py
7
main.py
@ -1,6 +1,9 @@
|
||||
"""
|
||||
启动脚本,会执行一些启动的操作,比如加载配置文件,初始化 bot 实例等。
|
||||
"""
|
||||
from liteyuki import LiteyukiBot
|
||||
from liteyuki.config import load_from_yaml
|
||||
from liteyuki.config import load_config_in_default
|
||||
|
||||
if __name__ == "__main__":
|
||||
bot = LiteyukiBot(**load_from_yaml("config.yml"))
|
||||
bot = LiteyukiBot(**load_config_in_default())
|
||||
bot.run()
|
||||
|
Reference in New Issue
Block a user