Tsubaki, Native Image Reading

This commit is contained in:
Daniel Odendahl Jr
2017-05-12 20:25:17 +00:00
parent c097781db4
commit 13c0acdb59
37 changed files with 59 additions and 74 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class BotSearchCommand extends Command {
.set({ 'Authorization': DISCORD_BOTS_KEY });
const embed = new RichEmbed()
.setColor(0x9797FF)
.setAuthor('Discord Bots', 'https://i.imgur.com/lrKYBQi.jpg')
.setAuthor('Discord Bots')
.setTitle(body.name)
.setURL(`https://bots.discord.pw/bots/${bot.id}`)
.setDescription(body.description)
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class ForecastCommand extends Command {
const forecasts = body.query.results.channel.item.forecast;
const embed = new RichEmbed()
.setColor(0x0000FF)
.setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png')
.setAuthor(body.query.results.channel.title)
.setURL(body.query.results.channel.link)
.setTimestamp()
.addField(`**${forecasts[0].day} - ${forecasts[0].date}:**`,
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class IMDBCommand extends Command {
if (body.Error) throw new Error('No Results.');
const embed = new RichEmbed()
.setColor(0xDBA628)
.setAuthor('IMDB', 'https://i.imgur.com/sXwwIQs.png')
.setAuthor('IMDB')
.setURL(`http://www.imdb.com/title/${body.imdbID}`)
.setTitle(`${body.Title} (${body.imdbRating} Score)`)
.setDescription(body.Plot.substr(0, 2000))
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class OsuCommand extends Command {
if (!body.length) throw new Error('No Results.');
const embed = new RichEmbed()
.setColor(0xFF66AA)
.setAuthor('osu!', 'https://i.imgur.com/EmnUp00.png')
.setAuthor('osu!')
.setURL('https://osu.ppy.sh/')
.addField('**Username:**',
body[0].username, true)
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class SoundCloudCommand extends Command {
if (!body.length) throw new Error('No Results.');
const embed = new RichEmbed()
.setColor(0xF15A22)
.setAuthor(body[0].title, 'https://i.imgur.com/lFIz7RU.png')
.setAuthor(body[0].title)
.setURL(body[0].permalink_url)
.setThumbnail(body[0].artwork_url)
.addField('**Artist:**',
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class UrbanCommand extends Command {
if (!body.list.length) throw new Error('No Results.');
const embed = new RichEmbed()
.setColor(0x32a8f0)
.setAuthor('Urban Dictionary', 'https://i.imgur.com/fzFuuL7.png')
.setAuthor('Urban Dictionary')
.setURL(body.list[0].permalink)
.setTitle(body.list[0].word)
.setDescription(body.list[0].definition.substr(0, 2000))
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class WattpadCommand extends Command {
if (!body.stories.length) throw new Error('No Results.');
const embed = new RichEmbed()
.setColor(0xF89C34)
.setAuthor('Wattpad', 'https://i.imgur.com/Rw9vRQB.png')
.setAuthor('Wattpad')
.setURL(body.stories[0].url)
.setTitle(body.stories[0].title)
.setDescription(body.stories[0].description.substr(0, 2000))
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class WeatherCommand extends Command {
if (!body.query.count) throw new Error('Location Not Found.');
const embed = new RichEmbed()
.setColor(0x0000FF)
.setAuthor(body.query.results.channel.title, 'https://i.imgur.com/2MT0ViC.png')
.setAuthor(body.query.results.channel.title)
.setURL(body.query.results.channel.link)
.setTimestamp()
.addField('**City:**',
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class WikipediaCommand extends Command {
.setColor(0xE7E7E7)
.setTitle(body.query.pages[0].title)
.setURL(`https://en.wikipedia.org/wiki/${query}`)
.setAuthor('Wikipedia', 'https://i.imgur.com/a4eeEhh.png')
.setAuthor('Wikipedia')
.setDescription(body.query.pages[0].extract.substr(0, 2000).replace(/[\n]/g, '\n\n'));
return msg.embed(embed);
} catch (err) {
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class YouTubeCommand extends Command {
.setColor(0xDD2825)
.setTitle(body.items[0].snippet.title)
.setDescription(body.items[0].snippet.description)
.setAuthor(`YouTube - ${body.items[0].snippet.channelTitle}`, 'https://i.imgur.com/hkUafwu.png')
.setAuthor(`YouTube - ${body.items[0].snippet.channelTitle}`)
.setURL(`https://www.youtube.com/watch?v=${body.items[0].id.videoId}`)
.setThumbnail(body.items[0].snippet.thumbnails.default.url);
return msg.embed(embed);
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class YuGiOhCommand extends Command {
.setColor(0xBE5F1F)
.setTitle(body.data.name)
.setDescription(body.data.text)
.setAuthor('Yu-Gi-Oh!', 'https://i.imgur.com/7gPm9Rr.png')
.setAuthor('Yu-Gi-Oh!')
.addField('**Card Type:**',
body.data.card_type, true)
.addField('**Type:**',