Skip to content

Commit

Permalink
fix(discord: commands): fix stats' embed iconURL, and change to use f…
Browse files Browse the repository at this point in the history
…ooter
  • Loading branch information
dsevillamartin committed May 6, 2017
1 parent 65d8549 commit c7b6d27
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/Discord/Commands/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ class StatsCommand extends Command {
});
}
run(msg) {
let bot = this.bot;
let MemoryUsage = bytesToSize(process.memoryUsage().heapUsed, 3);
let Booted = bot.booted;
let Channels = bot.channels;
let TextChannels = Channels.filter(e => e.type !== 'voice').size;
let VoiceChannels = Channels.filter(e => e.type === 'voice').size;
const bot = this.bot;
const MemoryUsage = bytesToSize(process.memoryUsage().heapUsed, 3);
const Booted = bot.booted;
const Channels = bot.channels;
const TextChannels = Channels.filter(e => e.type !== 'voice').size;
const VoiceChannels = Channels.filter(e => e.type === 'voice').size;

const embed = {
color: 0xFD9827,
author: {
name: bot.user.username,
icon_url: bot.user.avatarURL,
footer: {
text: bot.user.username,
iconURL: bot.user.avatarURL(),
},
description: '**Yappy, the Gitlab Monitor Stats**',
fields: [
Expand Down

0 comments on commit c7b6d27

Please sign in to comment.