You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iniciando servidorfile:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/core/telegram.mjs:30
throw new EnvironmentVariablesError("BOT_TOKEN");
^
EnvironmentVariablesError: error environment veriables: [BOT_TOKEN]
at new Telegram (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/core/telegram.mjs:30:15)
at new BotBlazeWithTelegram (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/middleware/bot.mjs:16:21)
at start (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/index.mjs:23:25)
at file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/index.mjs:14:5
at C:\Users\SERVIDOR\Desktop\Bot2\bot-blaze-telegram\node_modules\figlet\lib\figlet.js:858:13
at C:\Users\SERVIDOR\Desktop\Bot2\bot-blaze-telegram\node_modules\figlet\lib\node-figlet.js:30:13
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
Node.js v17.8.0
The text was updated successfully, but these errors were encountered:
Você pode alterar nome do arquivo .env.example para .env e preenche os campos [BOT_TOKEN e ID_GROUP_MESSAGE]
Setar variaveis de ambiente no sistema (você pode pesquisar mais sobre no google)
Uso em dev
yarn
yarn dev
npm
npm run dev
Obs.: apenas o script de dev consegue implementar as variáveis ambiente do arquivo .env no sistema, caso execute outro arquivo/script preciso setar direto no sistema.
Obtive esse erro ao iniciar, mas o Token está correto e já o uso em outro bot!
| __ )| | __ _ _______ __ () || |__ | || | ___ __ _ _ __ __ _ _ __ ___
| _ | |/ _
|_ / _ \ \ \ /\ / / | __| '_ \ | |/ _ \ |/ _ \/ _
| '/| '_
_| |) | | (| |/ / / \ V V /| | || | | | | | __/ | __/ (| | | | (| | | | | | |
|/||_,/_| _/_/ ||_|| || |_|_|_|_|_, || _,|| || ||
|_/
by: Elizandro Dantas
throw new EnvironmentVariablesError("BOT_TOKEN");
^
EnvironmentVariablesError: error environment veriables: [BOT_TOKEN]
at new Telegram (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/core/telegram.mjs:30:15)
at new BotBlazeWithTelegram (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/middleware/bot.mjs:16:21)
at start (file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/index.mjs:23:25)
at file:///C:/Users/SERVIDOR/Desktop/Bot2/bot-blaze-telegram/src/index.mjs:14:5
at C:\Users\SERVIDOR\Desktop\Bot2\bot-blaze-telegram\node_modules\figlet\lib\figlet.js:858:13
at C:\Users\SERVIDOR\Desktop\Bot2\bot-blaze-telegram\node_modules\figlet\lib\node-figlet.js:30:13
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
Node.js v17.8.0
The text was updated successfully, but these errors were encountered: