Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
Doges authored May 16, 2022
1 parent dff2ec6 commit e1bbdd2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/listeners/MainListener.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { CommandContext, EventListener, MiscUtils } = require('../')
const { CommandContext, EventListener } = require('../')
const { SwitchbladePlayerManager } = require('../music')
const fetch = require('node-fetch')

Expand All @@ -17,17 +17,6 @@ module.exports = class MainListener extends EventListener {
this.user.setActivity(`@${this.user.username} is getting archived. Huge thanks to everyone!`, { type: 'PLAYING' })
this.user.setStatus('idle')

async function updatePresence (client) {
const shardGuildCounts = await client.shard.fetchClientValues('guilds.cache.size')
const totalGuildCount = shardGuildCounts.reduce((total, current) => total + current)
const shardUserCounts = await client.shard.fetchClientValues('users.cache.size')
const totalUserCount = shardUserCounts.reduce((total, current) => total + current)
}

setInterval(() => {
updatePresence(this)
}, PRESENCE_INTERVAL, this)

// Lavalink connection
if (process.env.LAVALINK_NODES) {
try {
Expand Down

0 comments on commit e1bbdd2

Please # to comment.