Files
Femboy-Croissant-Bot/node_modules/dotenv/config.js
Syxpi 067bcecde3 Remove config.json
Remove config.json (not secure) and replace with .env.

Update deploy-commands.js:
- const { token, clientId } = require('./config.json');
+ const { token, clientId } = process.env;

Update index.js:
- const { token, clientId } = require('./config.json');
+ const token = process.env.TOKEN;
2025-10-18 23:45:35 +02:00

10 lines
176 B
JavaScript

(function () {
require('./lib/main').config(
Object.assign(
{},
require('./lib/env-options'),
require('./lib/cli-options')(process.argv)
)
)
})()