u20n / ubridge

IRC <-> Discord
MIT License
0 stars 0 forks source link

Log Last Message #1

Closed u20n closed 1 year ago

u20n commented 1 year ago

When a uBridge process stops, there's no way to index the last message. This is a simple fix, but I'd like to reduce config complexity. This constraint produces two possible solutions: Bite the bullet, and add a filepath in config.json, or have it standardised within uBridge. I favor the second option, it doesn't affect 'normal' users, but doesn't hinder configuration. It also seems to be the most elegant.

u20n commented 1 year ago

To reduce complexity when using bridges with more than one channel, and to reduce file size, last.log will be a simple key:value text file, between the discord channel's id, and the id of the last pulled message.

u20n commented 1 year ago

Using JSON feels like hitting a nail with a truck, but it's already in uBridge...

u20n commented 1 year ago

Completed in 5e8488a