mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-12 23:20:17 +00:00
Update index.js
process.env.DISCORD_TOKEN process.env.DISCORD_DEV_UID process.env.DISCORD_DEBUG_CHANNEL_ID process.env.YOUTUBE_KEY process.env.DBL_TOKEN process.env.PREFIX
This commit is contained in:
parent
9b98935e9d
commit
2820622a70
11
index.js
11
index.js
@ -1,7 +1,7 @@
|
|||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
const client = new Discord.Client({ disableEveryone: true, disabledEvents: ['TYPING_START'] });
|
const client = new Discord.Client({ disableEveryone: true, disabledEvents: ['TYPING_START'] });
|
||||||
const DBL = require("dblapi.js");
|
const DBL = require("dblapi.js");
|
||||||
const dbl = new DBL(process.env.DBLTOKEN, client);
|
const dbl = new DBL(process.env.DBL_TOKEN, client);
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const dotenv = require('dotenv');
|
const dotenv = require('dotenv');
|
||||||
const firebase = require('firebase/app');
|
const firebase = require('firebase/app');
|
||||||
@ -38,10 +38,11 @@ client.funcs.dbget = require('./funcs/dbget.js');
|
|||||||
client.funcs.exe = require('./funcs/exe.js');
|
client.funcs.exe = require('./funcs/exe.js');
|
||||||
|
|
||||||
client.config = {
|
client.config = {
|
||||||
token: process.env.TOKEN,
|
token: process.env.DISCORD_TOKEN,
|
||||||
apikey: process.env.API_KEY,
|
debug_channel: process.env.DISCORD_DEBUG_CHANNEL_ID,
|
||||||
devId: "360363051792203779",
|
apikey: process.env.YOUTUBE_KEY,
|
||||||
prefix: '>',
|
devId: process.env.DISCORD_DEV_UID,
|
||||||
|
prefix: process.env.PREFIX
|
||||||
};
|
};
|
||||||
|
|
||||||
const commandFiles = fs.readdirSync('./commands/').filter(f => f.endsWith('.js'));
|
const commandFiles = fs.readdirSync('./commands/').filter(f => f.endsWith('.js'));
|
||||||
|
Loading…
Reference in New Issue
Block a user