Closed elliclee closed 1 year ago
Still got the same Problem:
root@ubuntu-s-1gb-sgp1-tg:~# sudo chmod 777 ~/.halbot.json
root@ubuntu-s-1gb-sgp1-tg:~# DEBUG=1 npx halbot
file:///root/.npm/_npx/c35c4739108a4593/node_modules/utilitas/lib/utilitas.mjs:17
const newError = (msg, status, opt) => extError(new Error(msg), status, opt);
^
Error: AssertionError [ERR_ASSERTION]: Telegram Bot API Token is required.
at newError (file:///root/.npm/_npx/c35c4739108a4593/node_modules/utilitas/lib/utilitas.mjs:17:49)
at Module.throwError (file:///root/.npm/_npx/c35c4739108a4593/node_modules/utilitas/lib/utilitas.mjs:18:50)
at file:///root/.npm/_npx/c35c4739108a4593/node_modules/halbot/bin/halbot.mjs:32:34 {
status: undefined
}
Node.js v18.7.0
@Leask Could You help me fix this problem~
It’s a JSON file. Please delete all the comment lines in it. 🤣
@Leask Leask, thx
My Step 1: $vi ~/.halbot.json , and them type the config and :wq
Step 2: $npx halbot
but finally I got this :
How could I fix it. Thx in advance~