mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 08:23:37 +00:00
Some changes
This commit is contained in:
@ -3,14 +3,25 @@ module.exports = {
|
||||
alias: 'none',
|
||||
usage: '',
|
||||
description: 'Report a bug',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
async execute(msg, args, client, Discord, prefix) {
|
||||
|
||||
let developers = "";
|
||||
let user = "";
|
||||
for(i = 0; i < client.config.devId.length; i++){
|
||||
user = await client.users.fetch(client.config.devId[i]);
|
||||
if(i == client.config.devId.length-1){
|
||||
developers += user.tag;
|
||||
} else {
|
||||
developers += user.tag + " & ";
|
||||
}
|
||||
}
|
||||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(`Found a bug with ${client.user.username}?\nDM the core developer:`)
|
||||
.setDescription(`Matte#0002\nOr join the support server: ${client.config.supportGuild}`)
|
||||
.setDescription(`${developers}\nOr join the support server: ${client.config.supportGuild}`)
|
||||
.setColor(client.config.embedColor);
|
||||
msg.channel.send(embed);
|
||||
},
|
||||
};
|
||||
};
|
@ -3,12 +3,11 @@ module.exports = {
|
||||
alias: 'h',
|
||||
usage: '<command(opt)>',
|
||||
description: 'See the help for RadioX.',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
execute(msg, args, client, Discord, prefix, command) {
|
||||
if (args[1]) {
|
||||
if (!client.commands.has(args[1]) || (client.commands.has(args[1]) && client.commands.get(args[1]).omitFromHelp === true && msg.guild.id !== '489083836240494593')) return msg.channel.send('That command does not exist');
|
||||
if (!client.commands.has(args[1]) || (client.commands.has(args[1]) && client.commands.get(args[1]).omitFromHelp === true)) return msg.channel.send('That command does not exist');
|
||||
const command = client.commands.get(args[1]);
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(`${client.global.db.guilds[msg.guild.id].prefix}${command.name} ${command.usage}`)
|
||||
@ -23,7 +22,7 @@ module.exports = {
|
||||
}
|
||||
let commands = '';
|
||||
for (let i = 0; i < categories.length; i++) {
|
||||
commands += `**» ${categories[i].toUpperCase()}**\n${client.commands.filter(x => x.category === categories[i] && !x.omitFromHelp && !x.onlyDev).map(x => `\`${x.name}\``).join(', ')}\n`;
|
||||
commands += `**» ${categories[i].toUpperCase()}**\n${client.commands.filter(x => x.category === categories[i] && !x.omitFromHelp).map(x => `\`${x.name}\``).join(', ')}\n`;
|
||||
}
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(`${client.user.username} help:`)
|
||||
|
@ -3,7 +3,6 @@ module.exports = {
|
||||
alias: 'i',
|
||||
usage: '',
|
||||
description: 'Invite RadioX.',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
execute(msg, args, client, Discord, prefix) {
|
||||
|
@ -3,7 +3,6 @@ module.exports = {
|
||||
alias: 'np',
|
||||
usage: '',
|
||||
description: 'See the currently playing song position and length.',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'music',
|
||||
async execute(msg, args, client, Discord, prefix) {
|
||||
@ -15,7 +14,7 @@ module.exports = {
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle("__Now playing__")
|
||||
.setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${radio.url}\n\`${client.funcs.msToTime(completed, "hh:mm:ss")}\``)
|
||||
.setThumbnail(thumbnail._rejectionHandler0)
|
||||
/*.setThumbnail(thumbnail._rejectionHandler0)*/
|
||||
.setColor(client.config.embedColor)
|
||||
return msg.channel.send(embed);
|
||||
}
|
||||
|
@ -3,7 +3,6 @@ module.exports = {
|
||||
alias: 'p',
|
||||
usage: '<song name>',
|
||||
description: 'Play some music.',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'music',
|
||||
async execute(msg, args, client, Discord, prefix) {
|
||||
|
@ -3,7 +3,6 @@ module.exports = {
|
||||
description: 'Stop command.',
|
||||
alias: 'none',
|
||||
usage: '',
|
||||
onlyDev: false,
|
||||
permission: 'MANAGE_CHANNELS',
|
||||
category: 'music',
|
||||
execute(msg, args, client, Discord, prefix, command) {
|
||||
|
@ -3,7 +3,6 @@ module.exports = {
|
||||
description: 'Volume command.',
|
||||
alias: 'none',
|
||||
usage: '<volume>',
|
||||
onlyDev: false,
|
||||
permission: 'MANAGE_MESSAGES',
|
||||
category: 'music',
|
||||
execute(msg, args, client, Discord, prefix, command) {
|
||||
|
Reference in New Issue
Block a user