-
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.
Merge pull request #27 from Antares-Network/development
Update version to 1.3.3
- Loading branch information
Showing
8 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
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 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,34 @@ | ||
const { Command } = require('discord.js-commando'); | ||
const { MessageEmbed } = require('discord.js'); | ||
const channelCheck = require('../../functions/channelCheck') | ||
const logToConsole = require('../../actions/logToConsole') | ||
|
||
module.exports = class AdminHelpCommand extends Command { | ||
constructor(client) { | ||
super(client, { | ||
name: 'adminhelp', | ||
group: 'admin', | ||
memberName: 'adminhelp', | ||
description: 'Shows the bot\'s admin help embed', | ||
examples: ['adminhelp'], | ||
guildOnly: true, | ||
userPermissions: ['MANAGE_MESSAGES'] | ||
}); | ||
} | ||
|
||
async run(message) { | ||
const Embed = new MessageEmbed() | ||
.setColor('#ff3505') | ||
.setURL('https://discord.gg/6pZ2wtGANP') | ||
.setTitle("Admin Help, a list of commands") | ||
.setDescription("**defaultchannel**: Sets the channel the bot will talk in" + | ||
"\n\n **adminchannel**: Sets the channel the bot will send admin messages in" + | ||
"\n\n **dm**: Dm\'s a user that is mentioned. Careful, this is monitored for abuse" + | ||
"\n\n **remove**: Removes all data for the server this command is run in" + | ||
"\n\n **say** or **echo**: Lets you make the bot say something. Careful, this is monitored for abuse" + | ||
"\n\nJoin our support server: https://discord.gg/KKYw763") | ||
.setFooter(`Delivered in: ${Date.now() - message.createdTimestamp}ms | Antares Bot | ${botVersion}`, 'https://cdn.discordapp.com/icons/649703068799336454/1a7ef8f706cd60d62547d2c7dc08d6f0.png'); | ||
message.channel.send(Embed); | ||
logToConsole.command(message.guild, message); | ||
} | ||
}; |
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 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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