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:
parent
2c63509084
commit
5afe3ce3fe
4 changed files with 159 additions and 27 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,6 @@ export class VCAlert {
|
|||
@Column() expires_at: string;
|
||||
|
||||
@Column() body: string;
|
||||
|
||||
@Column() active: boolean;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue