diff --git a/src/services/bot/bot-prisma.ts b/src/services/bot/bot-prisma.ts index 843695b..1c270e3 100644 --- a/src/services/bot/bot-prisma.ts +++ b/src/services/bot/bot-prisma.ts @@ -229,6 +229,11 @@ If you are still piloting ${botName}, sorry for the inconvenience and please use return member.user.username === bot.currentPilot; }); if (pilot) { + // notify offender + await pilot.send({ + content: generateMessage(bot.name, bot.checkoutTime), + }); + bot.checkoutTime = ""; bot.currentPilot = ""; @@ -249,11 +254,6 @@ If you are still piloting ${botName}, sorry for the inconvenience and please use } ); - // notify offender - await pilot.send({ - content: generateMessage(bot.name, bot.checkoutTime), - }); - console.log( `Auto-parked ${bot.name} and sent a DM to ${pilot.user.username}` );