27 lines
716 B
JavaScript
27 lines
716 B
JavaScript
|
exports.canModifyQueue = (member) => {
|
||
|
const { channelID } = member.voice;
|
||
|
const botChannel = member.guild.voice.channelID;
|
||
|
|
||
|
if (channelID !== botChannel) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
};
|
||
|
|
||
|
let config;
|
||
|
|
||
|
try {
|
||
|
config = require("../config");
|
||
|
} catch (error) {
|
||
|
config = null;
|
||
|
}
|
||
|
|
||
|
exports.TOKEN = config.TOKEN;
|
||
|
exports.YOUTUBE_API_KEY = config.YOUTUBE_API_KEY;
|
||
|
//exports.SOUNDCLOUD_CLIENT_ID = config.SOUNDCLOUD_CLIENT_ID;
|
||
|
exports.MAX_PLAYLIST_SIZE = config.MAX_PLAYLIST_SIZE;
|
||
|
exports.PRUNING = config.PRUNING;
|
||
|
exports.STAY_TIME = config.STAY_TIME;
|
||
|
exports.DEFAULT_VOLUME = config.DEFAULT_VOLUME;
|
||
|
//exports.LOCALE = config.LOCALE;
|