KineticFox / loa-lfgBot

A recreation of the famous lfg-Bot but only for Lost Ark (by now)
GNU General Public License v3.0
2 stars 1 forks source link

Add auto deletion of a raid #37

Open reynozeros opened 9 months ago

reynozeros commented 9 months ago
KineticFox commented 9 months ago

for that we need a datetime object instead of text field for date/time (doable). Also a background job who checks in intervals if a raid has expired. (not that easy, not sure pycord offers that ability)

Needs a lot of resaerch. At the moment i have not the ressources to invest, but feel fre to make sugestions or pull requests :)

Reekfrin commented 9 months ago

Since you are using the 'send' command from discord we might be able to add "delete_after=864000" as an arg to the thread creation message for the raids ('m = await chanell.send('A Wild Raid spawns, come and join', embed=embed)'). this should delete the message after 10 days, shouldn't it? not sure if the thread gets deleted right with it tho.

KineticFox commented 9 months ago

@Reekfrin Yes this is possible too. But then we are only deleting the message in the corresponding channel and don't delete all the DB entries.

KineticFox commented 9 months ago

Thx to @reynozeros https://guide.pycord.dev/extensions/tasks#concept this can work

Reekfrin commented 9 months ago

for that we need a datetime object instead of text field for date/time (doable).

Since you mention this, are you thinking about adding a command for the raid leader to put a time and date? this way we can also think about a task function to ping the raid members 15 min before the start or something similiar.

Reekfrin commented 3 months ago

Push, maybe use the last send message in a raid thread to determine the auto delete. ping the raid members 7 days after last message, if nothing happens for 3 more days, the raid gets deleted