memebot/docs/踩坑.md

682 B
Raw Blame History

ncatbot 开发踩的坑


由于一上来就采用了远程开发的模式所以在bot连接的过程中需要在 bot.run() 函数中另外传入参数

bot.run(
    bt_uin = "bot account",
    root = "bot's master account",
    ws_uri = "ws://",
    ws_token = "Your token",
    webui_uri = "http://Your server:port", 
    webui_token = "Your token"
)

具体的信息在 配置项文档 中提及。 一些报错是由于webui的token所导致的默认值为napcat另外连接都需要带上协议例如连接webui时需要带上 http://