3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Made Alerts infinite until timed out, added -active and changed cmd sigm

This commit is contained in:
Dark 2020-02-02 17:01:03 +01:00 committed by Miikka
parent 2c63509084
commit 5afe3ce3fe
4 changed files with 159 additions and 27 deletions

View file

@ -50,7 +50,7 @@ export class GuildVCAlerts extends BaseGuildRepository {
});
}
async add(requestorId: string, userId: string, channelId: string, expiresAt: string, body: string) {
async add(requestorId: string, userId: string, channelId: string, expiresAt: string, body: string, active: boolean) {
await this.allAlerts.insert({
guild_id: this.guildId,
requestor_id: requestorId,
@ -58,6 +58,7 @@ export class GuildVCAlerts extends BaseGuildRepository {
channel_id: channelId,
expires_at: expiresAt,
body,
active,
});
}
}

View file

@ -17,4 +17,6 @@ export class VCAlert {
@Column() expires_at: string;
@Column() body: string;
@Column() active: boolean;
}