2.7 stuff

This commit is contained in:
Andrew Lee 2018-04-14 18:10:49 -04:00
parent 62ebe342d4
commit ee864e482c
4 changed files with 49 additions and 7 deletions

View file

@ -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');

View file

@ -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});

View file

@ -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');

43
commands/userinfo.js Normal file
View file

@ -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',
};