diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/ask.js | 39 | ||||
| -rw-r--r-- | commands/avatarurl.js | 25 | ||||
| -rw-r--r-- | commands/botinvite.js | 26 | ||||
| -rw-r--r-- | commands/eval.js | 80 | ||||
| -rw-r--r-- | commands/git.js | 24 | ||||
| -rw-r--r-- | commands/ping.js | 25 | ||||
| -rw-r--r-- | commands/say.js | 30 | ||||
| -rw-r--r-- | commands/serverinvite.js | 26 | ||||
| -rw-r--r-- | commands/ship.js | 25 | ||||
| -rw-r--r-- | commands/uptime.js | 62 | ||||
| -rw-r--r-- | commands/userinfo.js | 34 |
11 files changed, 0 insertions, 396 deletions
diff --git a/commands/ask.js b/commands/ask.js deleted file mode 100644 index 89ce891..0000000 --- a/commands/ask.js +++ /dev/null @@ -1,39 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { -var abaskanswer = [ - "Yes.", - "Nope. Just kidding :P", - "Definitely!", - "No.", - "Yep. Just kidding :P", - "I doubt it.", - "Maybe?", - "I don't know?", - "Hmm let me think :thinking:" -]; -if (args[1]) { - message.channel.sendMessage(abaskanswer[Math.floor(Math.random() * abaskanswer.length)]); -} else { - 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/avatarurl.js b/commands/avatarurl.js deleted file mode 100644 index 65abc45..0000000 --- a/commands/avatarurl.js +++ /dev/null @@ -1,25 +0,0 @@ -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 deleted file mode 100644 index e0e43ad..0000000 --- a/commands/botinvite.js +++ /dev/null @@ -1,26 +0,0 @@ -const Discord = require('discord.js'); -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 deleted file mode 100644 index a2cdbb4..0000000 --- a/commands/eval.js +++ /dev/null @@ -1,80 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { -if(message.author.id !== config.ownerID) return; -const clean = text => { - if (typeof(text) === "string") - return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203)); - else - return text; -} -const argseval = message.content.split(" ").slice(1); - try { - var code = argseval.join(" "); - var evaled = eval(code); - - if (typeof evaled !== "string") - evaled = require("util").inspect(evaled); - message.delete(); - - message.channel.send({ - embed: { - color: 3191350, - author: { - name: "Eval is working!", - icon_url: message.author.displayAvatarURL - }, - fields: [{ - name: '**:inbox_tray: Input**', - value: `\`\`\`js\n${code}\n\`\`\`` - }, - { - name: '**:outbox_tray: Output**', - value: `\`\`\`js\n${clean(evaled)}\n\`\`\`` - } - ], - } - }) - } catch (err) { - message.delete(); - - message.channel.send({ - embed: { - color: 3191350, - author: { - name: "Error", - icon_url: message.author.displayAvatarURL - }, - fields: [{ - name: '**Please check your code.**', - value: `\`\`\`xl\n${clean(err)}\n\`\`\`` - }, - { - name: '**Output**', - value: `\`\`\`js\n${clean(evaled)}\n\`\`\`` - } - ], - } - }) - } -} - -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 deleted file mode 100644 index 9e5d4be..0000000 --- a/commands/git.js +++ /dev/null @@ -1,24 +0,0 @@ -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/ping.js b/commands/ping.js deleted file mode 100644 index d6481bb..0000000 --- a/commands/ping.js +++ /dev/null @@ -1,25 +0,0 @@ -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 deleted file mode 100644 index fa9022f..0000000 --- a/commands/say.js +++ /dev/null @@ -1,30 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { - if(message.author.id !== config.ownerID) - message.reply(":no_entry: **NOPE!** Sorry buddy Alee is only allow to say this command.") - else { - message.channel.sendMessage(args.join(" ")); - 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 deleted file mode 100644 index 72660b5..0000000 --- a/commands/serverinvite.js +++ /dev/null @@ -1,26 +0,0 @@ -const Discord = require('discord.js'); -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/97vUx56"); -} - -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 deleted file mode 100644 index 2d10ff5..0000000 --- a/commands/ship.js +++ /dev/null @@ -1,25 +0,0 @@ -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 deleted file mode 100644 index dc61369..0000000 --- a/commands/uptime.js +++ /dev/null @@ -1,62 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { -//This command was ported from AstralMod -var timeString; // What we'll eventually put into the message - -var uptime = parseInt(client.uptime); // Get uptime in ms - -uptime = Math.floor(uptime / 1000); // Convert from ms to s - -var uptimeMinutes = Math.floor(uptime / 60); // Get the uptime in minutes - -var minutes = uptime % 60; - -var hours = 0; - -while (uptimeMinutes >= 60) { - -hours++; - -uptimeMinutes = uptimeMinutes - 60; - -} - - - -if (uptimeMinutes < 10) { - -timeString = hours + ":0" + uptimeMinutes // We need to add an additional 0 to the minutes - -} else { - -timeString = hours + ":" + uptimeMinutes // We don't need to add an extra 0. - -} - - - -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 deleted file mode 100644 index d6b0825..0000000 --- a/commands/userinfo.js +++ /dev/null @@ -1,34 +0,0 @@ -const Discord = require('discord.js'); -exports.run = (client, message, args, config) => { - var embed = new Discord.RichEmbed() - .setAuthor(message.author.username, message.author.avatarURL) - .setThumbnail(message.author.avatarURL) - .setDescription("Here's your info.") - .addField("Names", "Username: " + message.author.username + "\nNickname: " + message.member.displayName) - .addField("Identity", "User ID: " + message.author.id + "\nDiscriminator: " + message.author.discriminator) - .addField("Create and Join Times", "Created account at: " + message.member.user.createdAt + "\nJoined server at: " + message.member.joinedAt) - .setColor("#7af442") - 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' - -}; |
