summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-14 18:10:49 -0400
committerAlee <alee14498@gmail.com>2018-04-14 18:10:49 -0400
commitee864e482c053a7ac64ed89196e547e0913c0398 (patch)
tree4d4145da298da94455e68f0a1254b34d98b123cc
parent62ebe342d4c486219d19bce8b902c59d09cd76b4 (diff)
downloadAleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.tar.gz
AleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.tar.bz2
AleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.zip
2.7 stuff
-rw-r--r--bot_discord.js4
-rw-r--r--commands/changelog.js7
-rw-r--r--commands/help.js2
-rw-r--r--commands/userinfo.js43
4 files changed, 49 insertions, 7 deletions
diff --git a/bot_discord.js b/bot_discord.js
index 05c40c8..8700573 100644
--- a/bot_discord.js
+++ b/bot_discord.js
@@ -21,8 +21,8 @@ const Discord = require('discord.js');
const economy = require('discord-eco');
const moment = require('moment');
const client = new Discord.Client();
-const abVersion = '2.6.0';
-const prefix = 'ab:';
+const abVersion = '2.7.0 Beta';
+const prefix = 'abb:';
const fs = require('fs');
const config = require('./absettings.json');
diff --git a/commands/changelog.js b/commands/changelog.js
index 27a4f90..cc7faf9 100644
--- a/commands/changelog.js
+++ b/commands/changelog.js
@@ -20,10 +20,9 @@
module.exports.run = async (client, message) => {
const Discord = require('discord.js');
const embed = new Discord.RichEmbed()
- .setAuthor('AleeBot ' + '2.6.0 ' + 'Changelog', 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
- .setDescription('What\'s new in AleeBot 2.6?')
- .addField('[>] G A M E S!', 'Yes! You\'ve been waiting for a long time you can now get money from games!')
- .addField('[>] Quotes!', 'So you might be confused why quotes? Well... we merged with another project which is called AstralQuote.')
+ .setAuthor('AleeBot ' + '2.7.0 Beta ' + 'Changelog', 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
+ .setDescription('What\'s new in AleeBot 2.7?')
+ .addField('[>] User info!', 'Now AleeBot can tell you about your account!')
.setColor('#1fd619');
message.channel.send({embed});
diff --git a/commands/help.js b/commands/help.js
index 4b3d62d..c1d3f65 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -30,7 +30,7 @@ module.exports.run = async (client, message) => {
const embed = new Discord.RichEmbed()
.setTitle('AleeBot Help')
- .setAuthor('AleeBot 2.6.0' + ` Help and on ${client.guilds.size} servers`, 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
+ .setAuthor('AleeBot 2.7.0 Beta' + ` 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, Licensed with GPL-3.0');
diff --git a/commands/userinfo.js b/commands/userinfo.js
new file mode 100644
index 0000000..35647c3
--- /dev/null
+++ b/commands/userinfo.js
@@ -0,0 +1,43 @@
+/****************************************
+ *
+ * UserInfo: Command for AleeBot
+ * Copyright (C) 2018 AleeCorp
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+module.exports.run = async (client, message) => {
+ const Discord = require('discord.js');
+ var embed = new Discord.RichEmbed()
+ .setAuthor(message.author.tag, message.author.avatarURL)
+ .setDescription("User Information")
+ .addField("Names", "Username: " + message.author.username + "\nCurrent Nickname: " + message.member.displayName)
+ .addField("Identity", "User ID: " + message.author.id + "")
+ .addField("Create and Join Times", "Created account at: " + message.member.user.createdAt.toUTCString() + "\nJoined server at: " + message.member.joinedAt.toUTCString())
+ .setColor('#1fd619')
+ message.channel.send({embed});
+
+ };
+
+ exports.conf = {
+ aliases: ['uinfo'],
+ guildOnly: false,
+ };
+ exports.help = {
+ name: 'userinfo',
+ description: 'Tells your info.',
+ usage: 'userinfo',
+ category: '- Info Commands',
+ };
+ \ No newline at end of file