Lanbot_Music_V12/util/LanBot.js

27 lines
716 B
JavaScript
Raw Normal View History

2022-01-04 02:35:59 +01:00
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;