aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-10-21 15:43:18 -0400
committerUnknown <Alee14498@gmail.com>2017-10-21 15:43:18 -0400
commit1f245ddb081b15fbd3287aedc4f8965782e1fcc0 (patch)
tree24de6b7d52196c32c7b0d77c3aaefed6b701f191 /commands
parent1933ad0e02c3aefb677b7da0bf028e007ee286ba (diff)
downloadAleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.tar.gz
AleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.tar.bz2
AleeBot-1f245ddb081b15fbd3287aedc4f8965782e1fcc0.zip
Starting to work on AleeBot 2.0.0
Diffstat (limited to 'commands')
-rw-r--r--commands/ask.js39
-rw-r--r--commands/attack.js29
-rw-r--r--commands/avatarurl.js25
-rw-r--r--commands/botinvite.js26
-rw-r--r--commands/eval.js80
-rw-r--r--commands/git.js24
-rw-r--r--commands/help.js56
-rw-r--r--commands/ping.js25
-rw-r--r--commands/say.js30
-rw-r--r--commands/serverinvite.js26
-rw-r--r--commands/ship.js25
-rw-r--r--commands/uptime.js62
-rw-r--r--commands/userinfo.js34
13 files changed, 0 insertions, 481 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/attack.js b/commands/attack.js
deleted file mode 100644
index d0b0ed0..0000000
--- a/commands/attack.js
+++ /dev/null
@@ -1,29 +0,0 @@
-const Discord = require('discord.js');
-exports.run = (client, message, args, config) => {
- //This command was ported from AstralMod
-
-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
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/help.js b/commands/help.js
deleted file mode 100644
index da83fe7..0000000
--- a/commands/help.js
+++ /dev/null
@@ -1,56 +0,0 @@
-const Discord = require('discord.js');
-//const config = require('./absettings.json');
-//const abversion = require(config.abversion)
-exports.run = (client, message, args, config, abversion) => {
-
-var embed = new Discord.RichEmbed()
- .setTitle(`Commands for AleeBot ` + abversion + ` and running on ${client.guilds.size} servers.`)
- .setDescription('Every command you put in this bot must start with `ab:`')
- .setThumbnail("https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048")
- .addField('Fun Stuff:', 'attack\nask\nship',true)
- .addField('Info:', 'userinfo\n',true)
- .addField('Link:', 'botinvite\nserverinvite\ngit',true)
- .addField('Owner Only:', 'say\neval',true)
- .addField('Monitor:', 'ping\nuptime',true)
- .addField('Etc:', 'avatarurl', true)
- .setFooter("AleeBot "+ abversion +" Copyright 2017. Created by Alee14", "https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048")
- .setColor("#7af442")
- message.channel.sendEmbed(embed);
-} /* This feature is broken
- else if {
- message.channel.send ("```Commands for AleeBot "+ abversion +".\nYou are using this view because this bot doesn't have permission to send embed link.\n\n" +
- ''+prefix+'avatarurl\n' +
- ''+prefix+'git\n' +
- ''+prefix+'ping\n' +
- ''+prefix+'suggest\n' +
- ''+prefix+'uptime\n' +
- ''+prefix+'userinfo\n' +
- ''+prefix+'serverinfo\n' +
- ''+prefix+'botinvite\n' +
- ''+prefix+'serverinvite\n' +
- ''+prefix+'plan\n' +
- ''+prefix+'attack\n' +
- ''+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
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'
-
-};