BilliAlpha / discord-transfer

A discord bot for copying messages between guilds
26 stars 0 forks source link

Feature Request: Start Date Argument #13

Closed IronPegasus closed 1 year ago

IronPegasus commented 1 year ago

Fully migrating channels with an extensive message history (100,000+ messages) can take several days to complete. Sometimes, the bot will terminate partway through the migration process with "connection closed" errors. This isn't a big deal since the bot flags migrated messages with a reaction and will pickup where it left off once restarted. However, it seems to start its scan for unflagged messages at the beginning of each channel's history, meaning that sometimes it will scan tens of thousands of messages just to reach where it died. It would be nice if there was an optional --startdate/--date/etc parameter that would allow specification of where the bot should start scanning for messages.

BilliAlpha commented 1 year ago

Glad to know the bot is used for such large servers. There are several improvements that could be made to reduce the time it takes to migrate so many messages. This start date argument is a good idea. I'll look into it if I get some free time.

BilliAlpha commented 1 year ago

The last release should be quicker to migrate channels and provides the new --after option.

IronPegasus commented 1 year ago

I was not expecting such a fast response on this. Thank you so much!