From 58807cd22287f374a20ecfd921e8ec55b4f352db Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 3 Jul 2017 23:49:09 +0000 Subject: [PATCH] MeesageEmbed --- commands/games/math-game.js | 4 ++-- commands/games/quiz.js | 4 ++-- commands/games/typing-game.js | 4 ++-- commands/guild-info/server-info.js | 4 ++-- commands/moderation/ban.js | 4 ++-- commands/moderation/kick.js | 4 ++-- commands/moderation/softban.js | 4 ++-- commands/moderation/unban.js | 4 ++-- commands/moderation/warn.js | 4 ++-- commands/random/horoscope.js | 4 ++-- commands/random/today.js | 4 ++-- commands/random/would-you-rather.js | 4 ++-- commands/search/anime.js | 4 ++-- commands/search/bot-info.js | 4 ++-- commands/search/bulbapedia.js | 4 ++-- commands/search/define.js | 4 ++-- commands/search/discrim.js | 4 ++-- commands/search/forecast.js | 4 ++-- commands/search/github.js | 4 ++-- commands/search/manga.js | 4 ++-- commands/search/osu.js | 4 ++-- commands/search/recipe.js | 4 ++-- commands/search/soundcloud.js | 4 ++-- commands/search/urban.js | 4 ++-- commands/search/wattpad.js | 4 ++-- commands/search/weather.js | 4 ++-- commands/search/wikipedia.js | 4 ++-- commands/search/xkcd.js | 8 ++++---- commands/search/youtube.js | 4 ++-- commands/search/yu-gi-oh.js | 4 ++-- commands/text-edit/embed.js | 4 ++-- commands/text-edit/translate.js | 4 ++-- commands/user-info/user-info.js | 4 ++-- commands/util/help.js | 6 +++--- commands/util/info.js | 4 ++-- commands/util/shard-info.js | 4 ++-- html/carbonfeat.html | 2 +- html/discordbots.html | 2 +- package.json | 4 ++-- 39 files changed, 79 insertions(+), 79 deletions(-) diff --git a/commands/games/math-game.js b/commands/games/math-game.js index e0fcd10d..f8b83208 100644 --- a/commands/games/math-game.js +++ b/commands/games/math-game.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const math = require('mathjs'); const { operations, difficulties, maxValues } = require('../../assets/json/math-game'); @@ -33,7 +33,7 @@ module.exports = class MathGameCommand extends Command { const value2 = Math.floor(Math.random() * maxValues[difficulty]) + 1; const expression = `${value1} ${operation} ${value2}`; const answer = math.eval(expression).toString(); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle('You have 10 seconds to answer:') .setDescription(expression); await msg.embed(embed); diff --git a/commands/games/quiz.js b/commands/games/quiz.js index 9909db2c..3df92d69 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); const snekfetch = require('snekfetch'); @@ -24,7 +24,7 @@ module.exports = class QuizCommand extends Command { encode: 'url3986' }); const answer = body.results[0].correct_answer.toLowerCase(); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle('You have 15 seconds to answer this question:') .setDescription(stripIndents` **${decodeURIComponent(body.results[0].category)}** diff --git a/commands/games/typing-game.js b/commands/games/typing-game.js index 533f77e1..d06963b1 100644 --- a/commands/games/typing-game.js +++ b/commands/games/typing-game.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { sentences, difficulties, times } = require('../../assets/json/typing-game'); module.exports = class TypingGameCommand extends Command { @@ -29,7 +29,7 @@ module.exports = class TypingGameCommand extends Command { const { difficulty } = args; const sentence = sentences[Math.floor(Math.random() * sentences.length)]; const time = times[difficulty]; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`You have ${time / 1000} seconds to type:`) .setDescription(sentence); await msg.embed(embed); diff --git a/commands/guild-info/server-info.js b/commands/guild-info/server-info.js index 32c25a62..b4639c80 100644 --- a/commands/guild-info/server-info.js +++ b/commands/guild-info/server-info.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const moment = require('moment'); const filterLevels = ['Off', 'No Role', 'Everyone']; @@ -17,7 +17,7 @@ module.exports = class GuildInfoCommand extends Command { } run(msg) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x00AE86) .setThumbnail(msg.guild.iconURL()) .addField('❯ Name', diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index f10b0a5c..18f0a8c7 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class BanCommand extends Command { @@ -62,7 +62,7 @@ module.exports = class BanCommand extends Command { if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) { return msg.say('Could not log the ban to the mod logs.'); } else if (modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) .setColor(0xFF0000) .setTimestamp() diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 2ca08ad6..a257f86e 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class KickCommand extends Command { @@ -59,7 +59,7 @@ module.exports = class KickCommand extends Command { if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) { return msg.say('Could not log the kick to the mod logs.'); } else if (modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) .setColor(0xFFA500) .setTimestamp() diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 2868d3e1..84a8b138 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class SoftbanCommand extends Command { @@ -63,7 +63,7 @@ module.exports = class SoftbanCommand extends Command { if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) { return msg.say('Could not log the softban to the mod logs.'); } else if (modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) .setColor(0xFF4500) .setTimestamp() diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 556d7172..6e5a6d4c 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class UnbanCommand extends Command { @@ -53,7 +53,7 @@ module.exports = class UnbanCommand extends Command { if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) { return msg.say('Could not log the unban to the mod logs.'); } else if (modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) .setColor(0x00AE86) .setTimestamp() diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index bd0209f7..61a8f827 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class WarnCommand extends Command { @@ -56,7 +56,7 @@ module.exports = class WarnCommand extends Command { if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) { return msg.say('Could not log the warn to the mod logs.'); } else if (modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) .setColor(0xFFFF00) .setTimestamp() diff --git a/commands/random/horoscope.js b/commands/random/horoscope.js index 419e2e83..9c34166a 100644 --- a/commands/random/horoscope.js +++ b/commands/random/horoscope.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const signs = require('../../assets/json/horoscope'); @@ -32,7 +32,7 @@ module.exports = class HoroscopeCommand extends Command { const { text } = await snekfetch .get(`http://sandipbgt.com/theastrologer/api/horoscope/${sign}/today`); const body = JSON.parse(text); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x9797FF) .setTitle(`Horoscope for ${body.sunsign}...`) .setTimestamp() diff --git a/commands/random/today.js b/commands/random/today.js index a9fae2e6..be732af9 100644 --- a/commands/random/today.js +++ b/commands/random/today.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class TodayCommand extends Command { @@ -19,7 +19,7 @@ module.exports = class TodayCommand extends Command { const body = JSON.parse(text); const events = body.data.Events; const event = events[Math.floor(Math.random() * events.length)]; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x9797FF) .setURL(body.url) .setTitle(`On this day (${body.date})...`) diff --git a/commands/random/would-you-rather.js b/commands/random/would-you-rather.js index 86c8cc25..686a0e0f 100644 --- a/commands/random/would-you-rather.js +++ b/commands/random/would-you-rather.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class WouldYouRatherCommand extends Command { @@ -17,7 +17,7 @@ module.exports = class WouldYouRatherCommand extends Command { async run(msg) { const { body } = await snekfetch .get('http://www.rrrather.com/botapi'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`${body.title}...`) .setURL(body.link) .setColor(0x9797FF) diff --git a/commands/search/anime.js b/commands/search/anime.js index 60057f42..a656630d 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { cleanXML } = require('../../structures/Util'); const { promisifyAll } = require('tsubaki'); @@ -32,7 +32,7 @@ module.exports = class AnimeCommand extends Command { .query({ q: query }); const { anime } = await xml.parseStringAsync(text); const synopsis = cleanXML(anime.entry[0].synopsis[0].substr(0, 2000)); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') .setURL(`https://myanimelist.net/anime/${anime.entry[0].id[0]}`) diff --git a/commands/search/bot-info.js b/commands/search/bot-info.js index d93148e0..2bc79fe5 100644 --- a/commands/search/bot-info.js +++ b/commands/search/bot-info.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { DBOTS_KEY } = process.env; @@ -27,7 +27,7 @@ module.exports = class BotSearchCommand extends Command { const { body } = await snekfetch .get(`https://bots.discord.pw/api/bots/${bot.id}`) .set({ Authorization: DBOTS_KEY }); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x9797FF) .setAuthor('Discord Bots', 'https://i.imgur.com/lrKYBQi.jpg') .setTitle(body.name) diff --git a/commands/search/bulbapedia.js b/commands/search/bulbapedia.js index 035e2c50..3735e27e 100644 --- a/commands/search/bulbapedia.js +++ b/commands/search/bulbapedia.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class BulbapediaCommand extends Command { @@ -36,7 +36,7 @@ module.exports = class BulbapediaCommand extends Command { formatversion: 2 }); if (body.query.pages[0].missing) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x3E7614) .setTitle(body.query.pages[0].title) .setAuthor('Bulbapedia', 'https://i.imgur.com/09eYo5T.png') diff --git a/commands/search/define.js b/commands/search/define.js index ad2f887a..9228d0ce 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { WORDNIK_KEY } = process.env; @@ -33,7 +33,7 @@ module.exports = class DefineCommand extends Command { api_key: WORDNIK_KEY }); if (!body.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x9797FF) .setTitle(body[0].word) .setDescription(body[0].text); diff --git a/commands/search/discrim.js b/commands/search/discrim.js index b6bd88fc..1fde3cd8 100644 --- a/commands/search/discrim.js +++ b/commands/search/discrim.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); module.exports = class DiscrimCommand extends Command { constructor(client) { @@ -28,7 +28,7 @@ module.exports = class DiscrimCommand extends Command { run(msg, args) { const discrim = args.discrim || msg.author.discriminator; const users = this.client.users.filter((user) => user.discriminator === discrim).map((user) => user.username); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`${users.length} Users with the discriminator: ${discrim}`) .setDescription(users.join(', ')); return msg.embed(embed); diff --git a/commands/search/forecast.js b/commands/search/forecast.js index 4fd3f613..49c28aa2 100644 --- a/commands/search/forecast.js +++ b/commands/search/forecast.js @@ -1,6 +1,6 @@ const Command = require('../../structures/Command'); const { stripIndents } = require('common-tags'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class ForecastCommand extends Command { @@ -31,7 +31,7 @@ module.exports = class ForecastCommand extends Command { }); if (!body.query.count) return msg.say('Location Not Found.'); const forecasts = body.query.results.channel.item.forecast; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x0000FF) .setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png') .setURL(body.query.results.channel.link) diff --git a/commands/search/github.js b/commands/search/github.js index 6078802f..5ee462a2 100644 --- a/commands/search/github.js +++ b/commands/search/github.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const moment = require('moment'); const { GITHUB_LOGIN } = process.env; @@ -27,7 +27,7 @@ module.exports = class GithubCommand extends Command { try { const { body } = await snekfetch .get(`https://${GITHUB_LOGIN}@api.github.com/repos/${repo}`); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xFFFFFF) .setAuthor('Github', 'https://i.imgur.com/ajcPgJG.png') .setURL(body.html_url) diff --git a/commands/search/manga.js b/commands/search/manga.js index 7eef037c..09bd5081 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { cleanXML } = require('../../structures/Util'); const { promisifyAll } = require('tsubaki'); @@ -32,7 +32,7 @@ module.exports = class MangaCommand extends Command { .query({ q: query }); const { manga } = await xml.parseStringAsync(text); const synopsis = cleanXML(manga.entry[0].synopsis[0].substr(0, 2000)); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') .setURL(`https://myanimelist.net/manga/${manga.entry[0].id[0]}`) diff --git a/commands/search/osu.js b/commands/search/osu.js index 6a3467d3..43c25128 100644 --- a/commands/search/osu.js +++ b/commands/search/osu.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { OSU_KEY } = process.env; @@ -31,7 +31,7 @@ module.exports = class OsuCommand extends Command { type: 'string' }); if (!body.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xFF66AA) .setAuthor('osu!', 'https://i.imgur.com/EmnUp00.png') .setURL('https://osu.ppy.sh/') diff --git a/commands/search/recipe.js b/commands/search/recipe.js index 77402a89..d075d21c 100644 --- a/commands/search/recipe.js +++ b/commands/search/recipe.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class RecipeCommand extends Command { @@ -28,7 +28,7 @@ module.exports = class RecipeCommand extends Command { const body = JSON.parse(text); if (!body.results.length) return msg.say('No Results.'); const recipe = body.results[Math.floor(Math.random() * body.results.length)]; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xC20000) .setURL(recipe.href) .setTitle(recipe.title) diff --git a/commands/search/soundcloud.js b/commands/search/soundcloud.js index bd7ec28e..a694eccc 100644 --- a/commands/search/soundcloud.js +++ b/commands/search/soundcloud.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { SOUNDCLOUD_KEY } = process.env; @@ -30,7 +30,7 @@ module.exports = class SoundCloudCommand extends Command { client_id: SOUNDCLOUD_KEY }); if (!body.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xF15A22) .setAuthor('SoundCloud', 'https://i.imgur.com/lFIz7RU.png') .setTitle(body[0].title) diff --git a/commands/search/urban.js b/commands/search/urban.js index 49c040ca..f26cd0b8 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class UrbanCommand extends Command { @@ -26,7 +26,7 @@ module.exports = class UrbanCommand extends Command { .get('http://api.urbandictionary.com/v0/define') .query({ term: query }); if (!body.list.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x32A8F0) .setAuthor('Urban Dictionary', 'https://i.imgur.com/fzFuuL7.png') .setURL(body.list[0].permalink) diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index 9135f874..7c59b08d 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const moment = require('moment'); const { WATTPAD_KEY } = process.env; @@ -32,7 +32,7 @@ module.exports = class WattpadCommand extends Command { }) .set({ Authorization: `Basic ${WATTPAD_KEY}` }); if (!body.stories.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xF89C34) .setAuthor('Wattpad', 'https://i.imgur.com/Rw9vRQB.png') .setURL(body.stories[0].url) diff --git a/commands/search/weather.js b/commands/search/weather.js index 9f3989ad..54c2ffec 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class WeatherCommand extends Command { @@ -29,7 +29,7 @@ module.exports = class WeatherCommand extends Command { format: 'json' }); if (!body.query.count) return msg.say('Location Not Found.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x0000FF) .setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png') .setURL(body.query.results.channel.link) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 982e4f22..4bbac300 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class WikipediaCommand extends Command { @@ -35,7 +35,7 @@ module.exports = class WikipediaCommand extends Command { formatversion: 2 }); if (body.query.pages[0].missing) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xE7E7E7) .setTitle(body.query.pages[0].title) .setAuthor('Wikipedia', 'https://i.imgur.com/a4eeEhh.png') diff --git a/commands/search/xkcd.js b/commands/search/xkcd.js index def2d2b4..a50635de 100644 --- a/commands/search/xkcd.js +++ b/commands/search/xkcd.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class XKCDCommand extends Command { @@ -28,7 +28,7 @@ module.exports = class XKCDCommand extends Command { const current = await snekfetch .get('https://xkcd.com/info.0.json'); if (type === 'today') { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`${current.body.num} - ${current.body.title}`) .setURL(`https://xkcd.com/${current.body.num}`) .setImage(current.body.img) @@ -38,7 +38,7 @@ module.exports = class XKCDCommand extends Command { const random = Math.floor(Math.random() * current.body.num) + 1; const { body } = await snekfetch .get(`https://xkcd.com/${random}/info.0.json`); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`${body.num} - ${body.title}`) .setURL(`https://xkcd.com/${body.num}`) .setImage(body.img) @@ -49,7 +49,7 @@ module.exports = class XKCDCommand extends Command { if (isNaN(choice) || current.body.num < choice || choice < 1) return msg.say('Invalid Number.'); const { body } = await snekfetch .get(`https://xkcd.com/${choice}/info.0.json`); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`${body.num} - ${body.title}`) .setURL(`https://xkcd.com/${body.num}`) .setImage(body.img) diff --git a/commands/search/youtube.js b/commands/search/youtube.js index 56b19a99..7471156c 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { GOOGLE_KEY } = process.env; @@ -33,7 +33,7 @@ module.exports = class YouTubeCommand extends Command { key: GOOGLE_KEY }); if (!body.items.length) return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xDD2825) .setTitle(body.items[0].snippet.title) .setDescription(body.items[0].snippet.description) diff --git a/commands/search/yu-gi-oh.js b/commands/search/yu-gi-oh.js index 190a7654..c7140641 100644 --- a/commands/search/yu-gi-oh.js +++ b/commands/search/yu-gi-oh.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); module.exports = class YuGiOhCommand extends Command { @@ -26,7 +26,7 @@ module.exports = class YuGiOhCommand extends Command { const { body } = await snekfetch .get(`http://yugiohprices.com/api/card_data/${query}`); if (body.status === 'fail') return msg.say('No Results.'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0xBE5F1F) .setTitle(body.data.name) .setDescription(body.data.text) diff --git a/commands/text-edit/embed.js b/commands/text-edit/embed.js index 8072275a..58dc3cc3 100644 --- a/commands/text-edit/embed.js +++ b/commands/text-edit/embed.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); module.exports = class EmbedCommand extends Command { constructor(client) { @@ -21,7 +21,7 @@ module.exports = class EmbedCommand extends Command { run(msg, args) { const { text } = args; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL) .setColor(0x00AE86) .setTimestamp() diff --git a/commands/text-edit/translate.js b/commands/text-edit/translate.js index 4a259ff6..7581969e 100644 --- a/commands/text-edit/translate.js +++ b/commands/text-edit/translate.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const codes = require('../../assets/json/translate'); const { YANDEX_KEY } = process.env; @@ -58,7 +58,7 @@ module.exports = class TranslateCommand extends Command { lang: from ? `${from}-${to}` : to }); const lang = body.lang.split('-'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x00AE86) .addField(`❯ From: ${codes[lang[0]]}`, text) diff --git a/commands/user-info/user-info.js b/commands/user-info/user-info.js index dbbf9d71..ecb861f9 100644 --- a/commands/user-info/user-info.js +++ b/commands/user-info/user-info.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const moment = require('moment'); const statuses = require('../../assets/json/user-info'); @@ -27,7 +27,7 @@ module.exports = class UserInfoCommand extends Command { run(msg, args) { const member = args.member || msg.member; const status = member.user.presence.status; - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(member.displayHexColor) .setThumbnail(member.user.displayAvatarURL()) .addField('❯ Name', diff --git a/commands/util/help.js b/commands/util/help.js index 66b589c3..8f33dd1b 100644 --- a/commands/util/help.js +++ b/commands/util/help.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { stripIndents } = require('common-tags'); module.exports = class HelpCommand extends Command { @@ -29,7 +29,7 @@ module.exports = class HelpCommand extends Command { const showAll = command && command.toLowerCase() === 'all'; if (command && !showAll) { if (commands.length === 1) { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`Command ${commands[0].name}`) .setDescription(stripIndents` ${commands[0].description} @@ -48,7 +48,7 @@ module.exports = class HelpCommand extends Command { return msg.say(`Could not identify command. Use ${msg.usage(null)} to view a list of commands.`); } } else { - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(!showAll ? `Commands Available in ${msg.guild ? msg.guild.name : 'this DM'}` : 'All Commands') .setDescription(`Use ${msg.usage('')} to view detailed information about a command.`) .setColor(0x00AE86); diff --git a/commands/util/info.js b/commands/util/info.js index bb259427..2c8009f8 100644 --- a/commands/util/info.js +++ b/commands/util/info.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const { version } = require('../../package'); const moment = require('moment'); require('moment-duration-format'); @@ -20,7 +20,7 @@ module.exports = class InfoCommand extends Command { async run(msg) { const guilds = await this.client.shard.fetchClientValues('guilds.size'); const memory = await this.client.shard.broadcastEval('process.memoryUsage().heapUsed'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setColor(0x00AE86) .setFooter('©2017 dragonfire535#8081') .addField('❯ Servers', diff --git a/commands/util/shard-info.js b/commands/util/shard-info.js index 56a579e3..cc145c3a 100644 --- a/commands/util/shard-info.js +++ b/commands/util/shard-info.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const { RichEmbed } = require('discord.js'); +const { MessageEmbed } = require('discord.js'); const moment = require('moment'); require('moment-duration-format'); @@ -32,7 +32,7 @@ module.exports = class ShardInfoCommand extends Command { const memory = await this.client.shard.broadcastEval('process.memoryUsage().heapUsed'); const uptime = await this.client.shard.fetchClientValues('uptime'); const guilds = await this.client.shard.fetchClientValues('guilds.size'); - const embed = new RichEmbed() + const embed = new MessageEmbed() .setTitle(`Shard ${shard}`) .setColor(0x00AE86) .addField('❯ Servers', diff --git a/html/carbonfeat.html b/html/carbonfeat.html index 92bfe2f4..e43ecb2a 100644 --- a/html/carbonfeat.html +++ b/html/carbonfeat.html @@ -14,7 +14,7 @@
  1. Avatar image Editing, including Bob Ross, RIP, Wanted, Triggered, Steam Card, and more!
  2. Profile Trading Cards, with random rarity!
  3. -
  4. Battle! Challenge your friends in real turn-based matches!
  5. +
  6. Battle! Challenge your friends or the AI in real turn-based matches!
  7. Fun Games including Hangman, Lottery, Math, Quiz, Rock Paper Scissors, Slots, and Typing!
  8. Server and User Information!
  9. Minecraft Achievement Generation!
  10. diff --git a/html/discordbots.html b/html/discordbots.html index a623ae2b..a8cbfb81 100644 --- a/html/discordbots.html +++ b/html/discordbots.html @@ -11,7 +11,7 @@
    1. Avatar image Editing, including Bob Ross, RIP, Wanted, Triggered, Steam Card, and more!
    2. Profile Trading Cards, with random rarity!
    3. -
    4. Battle! Challenge your friends in real turn-based matches!
    5. +
    6. Battle! Challenge your friends or the AI in real turn-based matches!
    7. Fun Games including Hangman, Lottery, Math, Quiz, Rock Paper Scissors, Slots, and Typing!
    8. Server and User Information!
    9. Minecraft Achievement Generation!
    10. diff --git a/package.json b/package.json index 09d7fdce..bafbb66a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "26.2.0", + "version": "26.2.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": { @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/dragonfire535/xiaobot#readme", "engines": { - "node": "8.1.2" + "node": "8.1.3" }, "dependencies": { "bufferutil": "^3.0.1",