Migra dal codice salvato in locale al codice condiviso
This commit is contained in:
11
plugin/config.js
Normal file
11
plugin/config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const dotenv = require("dotenv");
|
||||
const path = require("path");
|
||||
|
||||
// Carica il file .env dalla root del plugin
|
||||
dotenv.config({ path: path.resolve(__dirname, "..", ".env"), quiet: true });
|
||||
|
||||
const config = {
|
||||
telegramBotToken: process.env.TELEGRAM_BOT_TOKEN,
|
||||
};
|
||||
|
||||
module.exports = { config };
|
||||
Reference in New Issue
Block a user