ayubun / discord-ttl

A simple-to-selfhost Discord bot that deletes server messages older than a configurable TTL (time to live)
MIT License
34 stars 5 forks source link

Add channel-specific TTLs #11

Open ayubun opened 1 year ago

ayubun commented 1 year ago

Same as #9, but for extra refinement if server owners wish for it. I need to give more thought on if this is actually beneficial, though.

thewilloftheshadow commented 1 year ago

Fwiw I forked this bot so I could use it on a singular channel rather than a server, so this would be useful for me

ayubun commented 1 year ago

Maybe #12 would be better for you then, actually @thewilloftheshadow. I see huge potential for making the list of channels that the bot will/wont delete configurable via commands 👀

ayubun commented 1 year ago

Hmm, actually, maybe allow-lists can be avoided if there is a special TTL (like -1 or a commented-out .env variable) that indicates no messages will be deleted until you set a TTL for something. Setting a server-wide TTL would apply it to every channel by default, and setting a channel TTL would only apply it to that channel.. I like that