Skip to content

Commit

Permalink
Added a metric for cached users and some buttons for status maniplula…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Jabster28 committed Nov 24, 2018
1 parent 9f75c32 commit 96ab665
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,32 @@ io.metric({
return client.channels.array().length;
}
});
io.metric({
type: 'metric',
name: 'Cached users',
value: function() {
return client.users.array().length;
}
});

io.action('Logging Test', (cb) => {
console.log("test pm2 log")
cb({ success: true });
});
io.action('Set Offline', (cb) => {
client.user.setPresence({ game: { name: 'with discord.js' }, status: 'invisible' })
cb("Celle is now invisible\n");

});
io.action('Set AFK', (cb) => {
client.user.setPresence({ game: { name: 'with discord.js' }, status: 'idle' })
cb("Celle is now invisible\n");

});
io.action('Set Online', (cb) => {
client.user.setPresence({ game: { name: 'with discord.js' }, status: 'online' })
cb("Celle is now online\n");
});

io.action('alert', (cb) => {
guildss = client.guilds.array()
Expand Down

0 comments on commit 96ab665

Please sign in to comment.