forked from cosmic/scythe
oops
This commit is contained in:
parent
73b5602396
commit
684c3df42a
|
|
@ -12,13 +12,11 @@ export class MessageEvents {
|
||||||
@On({ event: "messageCreate" })
|
@On({ event: "messageCreate" })
|
||||||
async messageCreate([msg]: ArgsOf<"messageCreate">) {
|
async messageCreate([msg]: ArgsOf<"messageCreate">) {
|
||||||
if (msg.embeds.length > 0) {
|
if (msg.embeds.length > 0) {
|
||||||
if (
|
if (msg.embeds[0].description?.includes("Bump done!")) {
|
||||||
msg.embeds[0].description?.includes("Bump done!")
|
|
||||||
) {
|
|
||||||
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 * 10 * 120);
|
await sleep(1000 * 60 * 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