1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +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:
Christer Warén 2019-10-31 21:05:51 +02:00 committed by GitHub
parent 9b98935e9d
commit 2820622a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'));