-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0636e9
commit 50db0b4
Showing
11 changed files
with
163 additions
and
321 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
name: 'test', | ||
aliases: ['test2', 't'], | ||
|
||
description: '', | ||
|
||
args: true, | ||
//args required? | ||
|
||
usage: '<user> <role>', | ||
//usage of command | ||
|
||
guildOnly: true, | ||
|
||
cooldown: 5, | ||
//in secs | ||
|
||
permissions: 'ADMINISTRATOR', | ||
|
||
execute(message, args) { | ||
//stuff | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
const prefix = ';'; | ||
//this will change with the custom prefix thing | ||
|
||
module.exports = { | ||
name: 'help', | ||
description: 'Help menu', | ||
description: 'List all of my commands or info about a specific command.', | ||
aliases: ['commands', 'cmds', 'info'], | ||
usage: '[command name]', | ||
execute(message, args) { | ||
//will work on this later as it is a "feature" of the command handling | ||
const data = []; | ||
const { commands } = message.client; | ||
|
||
if (!args.length) { | ||
let nonhiddencmds = commands.filter(command => {if (!command.hidden) return command.name }); | ||
data.push('Here\'s a list of all my commands:'); | ||
data.push(nonhiddencmds.map(command => command.name).join(', ')); | ||
data.push(`\nYou can send \`${prefix}help [command name]\` to get info on a specific command!`); | ||
|
||
return message.author.send(data, { split: true }) | ||
.then(() => { | ||
if (message.channel.type === 'dm') return; | ||
message.reply('I\'ve sent you a DM with all my commands!'); | ||
}) | ||
.catch(error => { | ||
console.error(`Could not send help DM to ${message.author.tag}.\n`, error); | ||
message.reply('it seems like I can\'t DM you!'); | ||
}); | ||
} | ||
|
||
const name = args[0].toLowerCase(); | ||
const command = commands.get(name) || commands.find(c => c.aliases && c.aliases.includes(name)); | ||
|
||
if (!command) { | ||
return message.reply('that\'s not a valid command!'); | ||
} | ||
|
||
data.push(`**Name:** ${command.name}`); | ||
|
||
if (command.aliases) data.push(`**Aliases:** ${command.aliases.join(', ')}`); | ||
if (command.description) data.push(`**Description:** ${command.description}`); | ||
if (command.usage) data.push(`**Usage:** ${prefix}${command.name} ${command.usage}`); | ||
|
||
data.push(`**Cooldown:** ${command.cooldown || 3} second(s)`); | ||
|
||
message.channel.send(data, { split: true }); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
const Discord = require('discord.js'); | ||
const version = "v1.0.3" | ||
|
||
module.exports = { | ||
name: 'ping', | ||
description: 'Ping!', | ||
name: 'invite', | ||
description: 'Get the invite link for the bot!', | ||
execute(message, args) { | ||
message.channel.send('Pong.'); | ||
let embed5 = new Discord.MessageEmbed() | ||
.setTitle("Invite Moby to your Server!") | ||
.setDescription('Use this link to invite Moby to your servers! [Link](https://discord.com/oauth2/authorize?client_id=784210441622650920&permissions=8&scope=bot)') | ||
.addField(version) | ||
.setColor("ORANGE") | ||
.setFooter(`Moby`, message.client.user.displayAvatarURL({ dynamic: true, format: 'png', size: 32 })) | ||
message.channel.send(embed5) | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
const Discord = require('discord.js'); | ||
|
||
module.exports = { | ||
name: 'ping', | ||
description: 'Ping!', | ||
name: 'femboy me daddy UwU', | ||
hidden: true, | ||
description: '', | ||
execute(message, args) { | ||
message.channel.send('Pong.'); | ||
let embed3 = new Discord.MessageEmbed() | ||
.setTitle("no you demented burnt lentil") | ||
.setDescription("hehe luv ya :D\nthis is the secret command :)") | ||
.setColor("ORANGE") | ||
.setFooter(`Moby`, client.user.displayAvatarURL({ dynamic: true, format: 'png', size: 32 })) | ||
message.channel.send(embed3) | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.