format many files

This commit is contained in:
2023-06-24 20:56:58 +02:00
parent 5503aa8713
commit 2d32f9b680
20 changed files with 823 additions and 823 deletions

View File

@ -130,10 +130,10 @@ export class ExtendedClient extends Client {
for (const guild of guilds.values()) {
logger.info("Starting background task for announcement role", { guildId: guild.id })
const textChannel: Maybe<TextChannel> = this.getAnnouncementChannelForGuild(guild.id)
if(!textChannel) {
if (!textChannel) {
logger.error("Could not find announcement channel. Aborting", { guildId: guild.id })
return
}
}
this.announcementRoleHandlerTask.set(guild.id, schedule("*/10 * * * * *", async () => {
const requestId = uuid()
const messages = (await textChannel.messages.fetchPinned()).filter(message => message.cleanContent.includes("[initial]"))
@ -174,7 +174,7 @@ export class ExtendedClient extends Client {
}
private async startPollCloseBackgroundTasks() {
for(const guild of this.guilds.cache) {
for (const guild of this.guilds.cache) {
this.pollCloseBackgroundTasks.set(guild[1].id, schedule("0 * * * * *", () => checkForPollsToClose(guild[1])))
}
}

View File

@ -1,7 +1,7 @@
import { CommandType } from "../types/commandTypes";
export class Command {
constructor(commandOptions: CommandType) {
Object.assign(this, commandOptions)
}
constructor(commandOptions: CommandType) {
Object.assign(this, commandOptions)
}
}