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