From 3c74b0b12bafe942b4ec8a091b559fadc5ec1c5f Mon Sep 17 00:00:00 2001 From: Alee14 Date: Fri, 18 Aug 2017 13:34:36 -0400 Subject: Added when you start AleeBot it's going to load all the commands --- commands/ask.js | 20 ++++++++++++++++++++ commands/attack.js | 20 ++++++++++++++++++++ commands/avatarurl.js | 21 +++++++++++++++++++++ commands/botinvite.js | 21 +++++++++++++++++++++ commands/eval.js | 21 +++++++++++++++++++++ commands/git.js | 20 ++++++++++++++++++++ commands/help.js | 21 +++++++++++++++++++++ commands/ping.js | 21 +++++++++++++++++++++ commands/say.js | 21 +++++++++++++++++++++ commands/serverinvite.js | 21 +++++++++++++++++++++ commands/ship.js | 21 +++++++++++++++++++++ commands/uptime.js | 21 +++++++++++++++++++++ commands/userinfo.js | 21 +++++++++++++++++++++ 13 files changed, 270 insertions(+) (limited to 'commands') diff --git a/commands/ask.js b/commands/ask.js index a87cb8a..89ce891 100644 --- a/commands/ask.js +++ b/commands/ask.js @@ -17,3 +17,23 @@ if (args[1]) { message.channel.sendMessage("Sorry, I don't know what your saying.") } } +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'ask', + + description: 'Go ask AleeBot a question let\'s see what AleeBot\'s response!', + + usage: 'ask [args]' + +}; diff --git a/commands/attack.js b/commands/attack.js index b17d0d9..d0b0ed0 100644 --- a/commands/attack.js +++ b/commands/attack.js @@ -7,3 +7,23 @@ message.channel.send("<@" + message.author.id + "> :right_facing_fist: " + args) commandProcessed = true; } +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'attack', + + description: 'If your mad at someone if they messed up use this command and mention them.', + + usage: 'attack [args]' + +}; diff --git a/commands/avatarurl.js b/commands/avatarurl.js index 6cc4313..65abc45 100644 --- a/commands/avatarurl.js +++ b/commands/avatarurl.js @@ -2,3 +2,24 @@ const Discord = require('discord.js'); exports.run = (client, message, args, config) => { message.reply(message.author.avatarURL); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'avatarurl', + + description: 'It displays your avatar url.', + + usage: 'avatarurl' + +}; diff --git a/commands/botinvite.js b/commands/botinvite.js index 32c85ba..e0e43ad 100644 --- a/commands/botinvite.js +++ b/commands/botinvite.js @@ -3,3 +3,24 @@ exports.run = (client, message, args, config) => { message.reply(':arrow_left: Continue in DMs.'); message.author.sendMessage("AleeBot on your server? Great! Here's the link: https://goo.gl/KDQyrp"); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'botinvite', + + description: 'Now you can invite your bot to your server!', + + usage: 'botinvite' + +}; diff --git a/commands/eval.js b/commands/eval.js index 730def9..2716cb8 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -57,3 +57,24 @@ const argseval = message.content.split(" ").slice(1); }) } } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'eval', + + description: 'It injects code but you cannot use it only the person host it is allow!', + + usage: 'eval [code]' + +}; diff --git a/commands/git.js b/commands/git.js index c513d60..9e5d4be 100644 --- a/commands/git.js +++ b/commands/git.js @@ -2,3 +2,23 @@ const Discord = require('discord.js'); exports.run = (client, message, args, config) => { message.channel.send ("Here's the github repo: https://github.com/AleeCorp/AleeBot"); } +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'git', + + description: 'Tells you the repository of AleeBot.', + + usage: 'git' + +}; diff --git a/commands/help.js b/commands/help.js index b7da131..1cf6f06 100644 --- a/commands/help.js +++ b/commands/help.js @@ -33,3 +33,24 @@ var embed = new Discord.RichEmbed() ''+prefix+'ask\n' + ''+prefix+'ship\n\n' + "Copyright "+ year +". Created by Alee14\n```"); */ + exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: ['h', 'halp'], + + permLevel: 0 + + }; + + + exports.help = { + + name: 'help', + + description: 'Displays all the available commands for your permission level.', + + usage: 'help [command]' + + }; diff --git a/commands/ping.js b/commands/ping.js index 7291018..d6481bb 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -2,3 +2,24 @@ const Discord = require('discord.js'); exports.run = (client, message, args, config) => { message.reply("**PONG!** :ping_pong: " + Math.round(client.ping) + " ms"); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'ping', + + description: 'It tells you the pingtime.', + + usage: 'ping' + +}; diff --git a/commands/say.js b/commands/say.js index 6d395c6..f32544b 100644 --- a/commands/say.js +++ b/commands/say.js @@ -5,3 +5,24 @@ exports.run = (client, message, args, config) => { message.delete(); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'say', + + description: 'You cannot use this command host of the bot can use it!', + + usage: 'say [input]' + +}; diff --git a/commands/serverinvite.js b/commands/serverinvite.js index cf0a696..0293821 100644 --- a/commands/serverinvite.js +++ b/commands/serverinvite.js @@ -3,3 +3,24 @@ exports.run = (client, message, args, config) => { message.reply(':arrow_left: Continue in DMs.'); message.author.sendMessage("You want a invite to the AleeArmy server? Here's the link: https://discord.gg/JqgXrAJ"); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'serverinvite', + + description: 'The bot will DM you the server invite', + + usage: 'serverinvite' + +}; diff --git a/commands/ship.js b/commands/ship.js index 5ea5900..2d10ff5 100644 --- a/commands/ship.js +++ b/commands/ship.js @@ -2,3 +2,24 @@ const Discord = require('discord.js'); exports.run = (client, message, args, config) => { message.channel.send(":ship: "+ message.author.username + " x " + message.guild.members.random().displayName); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'ship', + + description: 'The Bot will randomize random people that you will ship with.', + + usage: 'ship' + +}; diff --git a/commands/uptime.js b/commands/uptime.js index 63f9242..dc61369 100644 --- a/commands/uptime.js +++ b/commands/uptime.js @@ -39,3 +39,24 @@ message.reply("It looks like AleeBot has been up for " + timeString + " hours.") commandProcessed = true; } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'uptime', + + description: 'It will tell you how long AleeBot has been on for.', + + usage: 'uptime' + +}; diff --git a/commands/userinfo.js b/commands/userinfo.js index 4721e37..d6b0825 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -11,3 +11,24 @@ exports.run = (client, message, args, config) => { message.channel.sendEmbed(embed); } + +exports.conf = { + enabled: true, + + guildOnly: false, + + aliases: [], + + permLevel: 0 + +}; + +exports.help = { + + name: 'userinfo', + + description: 'It will tell your user info!', + + usage: 'userinfo' + +}; -- cgit v1.2.3