mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-02 05:43:37 +00:00
Merge branch 'develop' into fix-33
This commit is contained in:
@ -3,16 +3,12 @@ module.exports = {
|
||||
execute(client) {
|
||||
client.user.setStatus('dnd');
|
||||
|
||||
console.log("\n");
|
||||
client.funcs.logger("Bot", "Closing");
|
||||
console.log("\n");
|
||||
|
||||
client.funcs.saveRadios(client);
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
if(client.radio.size == 0){
|
||||
process.exit();
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,4 +3,4 @@ module.exports = {
|
||||
execute(client) {
|
||||
process.emit('SIGINT');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ module.exports = {
|
||||
|
||||
const permissions = interaction.channel.permissionsFor(interaction.client.user);
|
||||
if (!permissions.has('VIEW_CHANNEL')) return;
|
||||
|
||||
|
||||
if (!permissions.has('EMBED_LINKS')) return interaction.reply({
|
||||
content: client.messages.noPermsEmbed,
|
||||
ephemeral: true
|
||||
@ -14,7 +14,7 @@ module.exports = {
|
||||
const commandName = interaction.commandName;
|
||||
const command = client.commands.get(commandName);
|
||||
if (!command) return;
|
||||
|
||||
|
||||
try {
|
||||
command.execute(interaction, client);
|
||||
} catch (error) {
|
||||
|
@ -16,7 +16,7 @@ module.exports = {
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const args = message.content.slice(prefix.length).split(' ');
|
||||
if (!message.content.startsWith(prefix)) return;
|
||||
if (!args[0]) return;
|
||||
@ -30,7 +30,7 @@ module.exports = {
|
||||
let newMessage = {};
|
||||
|
||||
newMessage.messageCommandsDeprecatedTitle = client.messages.messageCommandsDeprecatedTitle.replace("%client.user.username%", client.user.username);
|
||||
|
||||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(newMessage.messageCommandsDeprecatedTitle)
|
||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
||||
@ -55,4 +55,4 @@ module.exports = {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,4 @@ module.exports = {
|
||||
if(msg.id != radio.message.id) return;
|
||||
radio.message = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ module.exports = {
|
||||
|
||||
/*DEVELOPERS*/
|
||||
client.funcs.logger('Developers');
|
||||
|
||||
|
||||
client.developers = "";
|
||||
let user = "";
|
||||
for (let i = 0; i < client.config.devId.length; i++) {
|
||||
@ -54,7 +54,7 @@ module.exports = {
|
||||
client.funcs.logger('Stations', 'Fetching list failed');
|
||||
console.error(error + "\n");
|
||||
}
|
||||
|
||||
|
||||
setInterval(async () => {
|
||||
try {
|
||||
client.funcs.logger('Stations', 'Started fetching list – ' + client.config.stationslistUrl);
|
||||
@ -72,7 +72,7 @@ module.exports = {
|
||||
if(!client.stations) {
|
||||
client.user.setStatus('dnd');
|
||||
}
|
||||
|
||||
|
||||
/*GUILDS*/
|
||||
client.funcs.logger('Guilds', 'Started fetching list');
|
||||
|
||||
@ -84,7 +84,7 @@ module.exports = {
|
||||
console.log("\n");
|
||||
|
||||
client.funcs.logger('Guilds', 'Successfully fetched list');
|
||||
|
||||
|
||||
/*STATISTICS*/
|
||||
client.datastore.calculateGlobal(client);
|
||||
|
||||
@ -100,4 +100,4 @@ module.exports = {
|
||||
}, 5000);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,4 @@ module.exports = {
|
||||
console.log(error.stack);
|
||||
process.emit('SIGINT');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user