summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-03-24 16:10:12 -0400
committerAlee <alee14498@gmail.com>2018-03-24 16:10:12 -0400
commit2835e99139b8b26cae599a73dc7ad4fd85913799 (patch)
tree751fd0b33cb007aa00398a5540a4ab80099e8149 /src
parentb41c18e497f17208d3eed9bd14a378647348255a (diff)
downloadAleeBot-2835e99139b8b26cae599a73dc7ad4fd85913799.tar.gz
AleeBot-2835e99139b8b26cae599a73dc7ad4fd85913799.tar.bz2
AleeBot-2835e99139b8b26cae599a73dc7ad4fd85913799.zip
2.1.0 Release
Diffstat (limited to 'src')
-rw-r--r--src/bot_discord.js4
-rw-r--r--src/commands/ask.js30
-rw-r--r--src/commands/avatarurl.js14
-rw-r--r--src/commands/help.js2
4 files changed, 47 insertions, 3 deletions
diff --git a/src/bot_discord.js b/src/bot_discord.js
index 833e121..f195e73 100644
--- a/src/bot_discord.js
+++ b/src/bot_discord.js
@@ -7,8 +7,8 @@
**********************************************/
const Discord = require('discord.js');
const client = new Discord.Client();
-const abVersion = '2.1.0 Beta';
-const prefix = 'abb:';
+const abVersion = '2.1.0';
+const prefix = 'ab:';
const fs = require('fs');
const config = require('./absettings.json');
console.log('Welcome to AleeBot NodeJS Terminal!');
diff --git a/src/commands/ask.js b/src/commands/ask.js
new file mode 100644
index 0000000..d3d0f4a
--- /dev/null
+++ b/src/commands/ask.js
@@ -0,0 +1,30 @@
+module.exports.run = async (client, message, args) => {
+ let 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 = {
+ aliases: ['8ball'],
+ guildOnly: false,
+ };
+ exports.help = {
+ name: 'ask',
+ description: 'Give AleeBot a question!',
+ usage: 'ask [args]',
+ category: '- Fun Commands',
+ };
+ \ No newline at end of file
diff --git a/src/commands/avatarurl.js b/src/commands/avatarurl.js
new file mode 100644
index 0000000..87e9321
--- /dev/null
+++ b/src/commands/avatarurl.js
@@ -0,0 +1,14 @@
+module.exports.run = async (client, message) => {
+ message.reply(message.author.avatarURL);
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: false,
+};
+exports.help = {
+ name: 'avatarurl',
+ description: 'Sends you your avatar picture.',
+ usage: 'avatarurl',
+ category: '- Fun Commands',
+};
diff --git a/src/commands/help.js b/src/commands/help.js
index c7dc474..27add92 100644
--- a/src/commands/help.js
+++ b/src/commands/help.js
@@ -11,7 +11,7 @@ module.exports.run = async (client, message) => {
const embed = new Discord.RichEmbed()
.setTitle('AleeBot Help')
- .setAuthor('AleeBot 2.1.0 Beta' + ` Help and on ${client.guilds.size} servers`, 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
+ .setAuthor('AleeBot 2.1.0' + ` Help and on ${client.guilds.size} servers`, 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
.setDescription('Every command you input into AleeBot is `' + require('../absettings.json').prefix + '`')
.setColor('#1fd619')
.setFooter('AleeCorp Copyright 2018');