commit
ba8643b537
|
@ -2,4 +2,5 @@ node_modules/
|
||||||
.vscode
|
.vscode
|
||||||
package-lock.json
|
package-lock.json
|
||||||
releasenotes.txt
|
releasenotes.txt
|
||||||
config.json
|
config.json
|
||||||
|
.env
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
description: 'Get help on anything from commands, to what the bot does! just not your homework..',
|
description: 'Get help on anything from commands, to what the bot does! just not your homework..',
|
||||||
options: [{
|
options: [{
|
||||||
name: 'help',
|
name: 'help',
|
||||||
description: 'View Information about this command',
|
description: 'The command you want information on',
|
||||||
required: false,
|
required: false,
|
||||||
type: Constants.ApplicationCommandOptionTypes.STRING
|
type: Constants.ApplicationCommandOptionTypes.STRING
|
||||||
}],
|
}],
|
||||||
|
@ -22,6 +22,7 @@ module.exports = {
|
||||||
if (!command) {
|
if (!command) {
|
||||||
return {
|
return {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
color: 9442302,
|
||||||
title: `:question: SEYMOUR! THE ${client.user.username} IS ON FIRE!`,
|
title: `:question: SEYMOUR! THE ${client.user.username} IS ON FIRE!`,
|
||||||
description: `Run ${config.prefix}help for more information on each command.`,
|
description: `Run ${config.prefix}help for more information on each command.`,
|
||||||
footer: {
|
footer: {
|
||||||
|
@ -29,18 +30,17 @@ module.exports = {
|
||||||
text: config.footerTxt
|
text: config.footerTxt
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'Commands', value: client.commands.map(command => command.name).join('\n') }
|
{ name: 'Commands', value: client.commands.map(command => command.name).join(', ') }
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// const cmdName = args[0].toLowerCase();
|
|
||||||
const cmdName = command;
|
const cmdName = command;
|
||||||
const cmd = client.commands.get(cmdName);
|
const cmd = client.commands.get(cmdName);
|
||||||
console.log(cmd.options.map(option => option.required));
|
console.log(cmd.options.map);
|
||||||
if (!cmd) {
|
if (!cmd) {
|
||||||
return client.generateErrorMessage(`${cmdName} is not a valid command! Run ${config.prefix}help for a command list.`);
|
return client.generateErrorMessage(`${cmdName} is not a valid command. Run ${config.prefix}help for a command list!`);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
@ -55,8 +55,8 @@ module.exports = {
|
||||||
{ name: 'Command Name', value: `${cmdName}`, inline: true },
|
{ name: 'Command Name', value: `${cmdName}`, inline: true },
|
||||||
{ name: 'Command Description', value: cmd.description, inline: true },
|
{ name: 'Command Description', value: cmd.description, inline: true },
|
||||||
{ name: 'Command Options', value: cmd.options.map(option => option.name).join('\n') || 'None', inline: true },
|
{ name: 'Command Options', value: cmd.options.map(option => option.name).join('\n') || 'None', inline: true },
|
||||||
{ name: 'Command Option Description', value: cmd.options.map(option => option.description) || 'None', inline: true }
|
{ name: 'Command Option Description', value: cmd.options.map(option => option.description).join('\n') || 'None', inline: true }
|
||||||
// { name: 'Command Option Required?', value: cmd.options.map(option => option.required) ? 'Yes' : 'No' }
|
// { name: 'Command Option Required?', value: cmd.options.map(option => option.required) ? 'Yes' : 'No' }
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,18 +26,10 @@ module.exports = {
|
||||||
url: 'https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png'
|
url: 'https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png'
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{ name: 'Anitrox', value: 'Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8)' },
|
||||||
name: 'Anitrox',
|
{ name: 'Anitrox PTB (Public Test Build)', value: 'So you want the fresh and hot builds straight from the oven? We gotchu \n [Add Anitrox PTB to your server](https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303)' },
|
||||||
value: 'Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8)'
|
{ name: 'Anitrox Dev, Self hosting and more!', value: 'Self-host your own Anitrox (including dev!), Contribute, and more! The possibilites are endless. [Anitrox Source](https://github.com/IDeletedSystem64/anitrox)' },
|
||||||
},
|
{ name: 'Need help?', value: 'Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)' }
|
||||||
{
|
|
||||||
name: 'Anitrox PTB (Public Test Build)',
|
|
||||||
value: 'So you want the fresh and hot builds straight from the oven? We gotchu \n [Add Anitrox PTB to your server](https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303)'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Need help?',
|
|
||||||
value: 'Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)'
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,8 +5,6 @@ module.exports = (uptime) => {
|
||||||
const tHrs = parseInt((tSeconds % 86400) / 3600);
|
const tHrs = parseInt((tSeconds % 86400) / 3600);
|
||||||
const tMins = parseInt((tSeconds % 3600) / 60);
|
const tMins = parseInt((tSeconds % 3600) / 60);
|
||||||
const tSecs = parseInt(tSeconds % 60);
|
const tSecs = parseInt(tSeconds % 60);
|
||||||
// We can probably just return tSeconds (totalSeconds) instead of parsing.
|
|
||||||
// So that was a fucking lie.
|
|
||||||
|
|
||||||
const days = tDays + (tDays === 1 ? ' day' : ' days');
|
const days = tDays + (tDays === 1 ? ' day' : ' days');
|
||||||
const hours = tHrs + (tHrs === 1 ? ' hour' : ' hours');
|
const hours = tHrs + (tHrs === 1 ? ' hour' : ' hours');
|
||||||
|
|
Reference in New Issue