Skip to content

Commit

Permalink
switching over from imgur URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusgerdin committed Jun 23, 2020
1 parent c8444e5 commit 07f193e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/commands/User/discordstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ module.exports = class extends Command {
.then(json => {
const embed = new MessageEmbed()
.setDescription(`[${msg.language.get('COMMAND_DISCORDSTATUS_LINK')}](${json.page.url})`)
.setThumbnail('https://i.imgur.com/3Xw9JWs.png')
.setThumbnail('https://cdn.discordapp.com/embed/avatars/1.png')
.setTimestamp()
.setFooter(msg.language.get('COMMAND_REQUESTED_BY', msg), msg.author.displayAvatarURL());

if (json.incidents.length === 0) {
embed.setTitle(msg.language.get('COMMAND_DISCORDSTATUS_ALLOK'))
.setColor(this.client.settings.get('colors.green'))
// eslint-disable-next-line max-len
.setThumbnail('https://cdn.discordapp.com/embed/avatars/2.png')
.addField(msg.language.get('COMMAND_DISCORDSTATUS_LASTUPDATE'), timezone(json.page.updated_at, msg.guild));
}

Expand All @@ -38,7 +38,7 @@ module.exports = class extends Command {
embed.setTitle(msg.language.get('COMMAND_DISCORDSTATUS_INCIDENT'))
.setDescription(`[${msg.language.get('COMMAND_DISCORDSTATUS_INCIDENT_LINK')}](https://status.discordapp.com/incidents/${incident.incident_id}/)`)
.setColor(this.client.settings.get('colors.yellow'))
// eslint-disable-next-line max-len
.setThumbnail('https://cdn.discordapp.com/embed/avatars/3.png')
.addField(msg.language.get('COMMAND_DISCORDSTATUS_INCIDENT_TSTAMP'), timezone(incident.created_at, msg.guild))
.addField(msg.language.get('COMMAND_DISCORDSTATUS_INCIDENT_UPDATES'), incident.incident_updates[0].body);
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/User/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ module.exports = class extends Command {
.then(response => response.json())
.then(json => {
const embed = new MessageEmbed()
.setAuthor(msg.language.get('COMMAND_WIKI_WIKIPEDIA'), 'https://i.imgur.com/fnhlGh5.png')
.setAuthor(msg.language.get('COMMAND_WIKI_WIKIPEDIA'), 'https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png')
.setColor(this.client.settings.get('colors.white'))
.setTitle(json.title)
.setDescription(`[${msg.language.get('COMMAND_WIKI_LINK')}](${json.content_urls.desktop.page})`)
.addField(msg.language.get('COMMAND_WIKI_EMBED_DESC'), `${json.description}.`)
.addField(msg.language.get('COMMAND_WIKI_EMBED_INFO'), json.extract)
.setThumbnail((json.thumbnail && json.thumbnail.source) || 'https://i.imgur.com/fnhlGh5.png')
.setThumbnail((json.thumbnail && json.thumbnail.source) || 'https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png')
.setTimestamp()
.setFooter(msg.language.get('COMMAND_REQUESTED_BY', msg), msg.author.displayAvatarURL());
return msg.send(embed);
Expand Down
4 changes: 2 additions & 2 deletions src/events/twitchStreamerLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ module.exports = class extends Event {

async announceStream(guild, streamer, streamerPic, streamTitle, streamThumbnail, streamViewers, startedAt) {
const embed = new MessageEmbed()
.setAuthor(streamer, 'https://i.imgur.com/8uLz7KW.png')
.setAuthor(streamer, 'https://rtbyte.xyz/src/img/assets/liveIcon.png')
.setColor(this.client.settings.get('colors.purple'))
.setTitle(streamTitle)
.setDescription(guild.language.get('NOTIFICATION_TWITCH_LINK', streamer))
.setThumbnail(streamerPic)
.addField(guild.language.get('NOTIFICATION_TWITCH_VIEWERS'), streamViewers)
.setImage(streamThumbnail)
.setTimestamp(startedAt)
.setFooter('twitch.tv', 'https://i.imgur.com/haYO7V0.png');
.setFooter('twitch.tv', 'https://rtbyte.xyz/src/img/assets/twitchLogo.png');
// Unused for now
/* const role = await guild.roles.get(guild.settings.get('twitch.twitchNotifsRole')); */
const channel = await this.client.channels.get(guild.settings.get('twitch.twitchNotifsChannel'));
Expand Down

0 comments on commit 07f193e

Please sign in to comment.