refactor(all): uniformisation
This commit is contained in:
89 files changed
+10215
-10215
No files matched your search
+21
-21
@@ -1,21 +1,21 @@
|
||||
import { Events } from 'discord.js';
|
||||
import { createLogger } from '../core/logger.js';
|
||||
import { startPollScheduler } from '../services/polls/poll-service.js';
|
||||
import { startBotStatusRotation } from '../services/status/bot-status-service.js';
|
||||
import { startVoiceJanitor, sweepVoiceChannels } from '../services/voice/voice-service.js';
|
||||
|
||||
const log = createLogger('discord');
|
||||
|
||||
export const name = Events.ClientReady;
|
||||
export const once = true;
|
||||
|
||||
export async function execute(client) {
|
||||
startPollScheduler(client);
|
||||
await sweepVoiceChannels(client);
|
||||
startVoiceJanitor(client);
|
||||
startBotStatusRotation(client);
|
||||
log.info(`Connected as ${client.user.tag}`, {
|
||||
guilds: client.guilds.cache.size,
|
||||
commands: client.commands.size,
|
||||
});
|
||||
}
|
||||
import { Events } from 'discord.js';
|
||||
import { createLogger } from '../core/logger.js';
|
||||
import { startPollScheduler } from '../services/polls/poll-service.js';
|
||||
import { startBotStatusRotation } from '../services/status/bot-status-service.js';
|
||||
import { startVoiceJanitor, sweepVoiceChannels } from '../services/voice/voice-service.js';
|
||||
|
||||
const log = createLogger('discord');
|
||||
|
||||
export const name = Events.ClientReady;
|
||||
export const once = true;
|
||||
|
||||
export async function execute(client) {
|
||||
startPollScheduler(client);
|
||||
await sweepVoiceChannels(client);
|
||||
startVoiceJanitor(client);
|
||||
startBotStatusRotation(client);
|
||||
log.info(`Connected as ${client.user.tag}`, {
|
||||
guilds: client.guilds.cache.size,
|
||||
commands: client.commands.size,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user