fix bump reminder
This commit is contained in:
parent
d5b0b17432
commit
73b5602396
|
|
@ -13,13 +13,12 @@ export class MessageEvents {
|
|||
async messageCreate([msg]: ArgsOf<"messageCreate">) {
|
||||
if (msg.embeds.length > 0) {
|
||||
if (
|
||||
msg.author.id == "302050872383242240" &&
|
||||
msg.embeds[0].description?.includes("Bump done! :thumbsup:")
|
||||
msg.embeds[0].description?.includes("Bump done!")
|
||||
) {
|
||||
await msg.channel.send(
|
||||
"thanks for bumping <3 I'll send a reminder in 2 hours :3",
|
||||
);
|
||||
await sleep(1000 * 60 * 120);
|
||||
await sleep(1000 * 10 * 120);
|
||||
await msg.channel.send("it's time to bump again!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue