Discord-Reposter icon indicating copy to clipboard operation
Discord-Reposter copied to clipboard

Bot Stopped - Is it possible to "Restart" from a certain Message?

Open MisterCookie1234 opened this issue 4 years ago • 3 comments

Bot worked for about ~ 22 Hours til it stopped reposting. It posted over 20k Messages, but randomly stopped (somewhere at the 01st of November) It would be nice to let him rerun from that specific message on, where he stopped (via messageid) or from that date on.

Greetings and.. Merry Christmas

MisterCookie1234 avatar Dec 23 '19 23:12 MisterCookie1234

I think this should be possible by modifying line 361. By replacing after: "0" with after: "messageid", it should continue from a certain message rather than the first message.

I'm sorry about the bot randomly stopping, I am still trying to work out why this is. I think it is most likely due to the inactive function, which is meant to disable the bot when /repost stop is typed. Until I properly fix this, it might work to replace lines 49 to 51 with the following:

function inactive(from, to) {
    return false;
}

MysteryPancake avatar Dec 24 '19 20:12 MysteryPancake

Hello!

Method 1 worked fine, i was able to repost the last messages.

Method 2 does not seem to work. Let the Bot "repost" live but it randomly stopped again.

MisterCookie1234 avatar Dec 26 '19 21:12 MisterCookie1234

That is very strange. I will look into this, but I am not sure why this is happening. Others have also had this issue, including myself.

MysteryPancake avatar Dec 27 '19 01:12 MysteryPancake