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 `discord-ttl` CLI #10

Open ayubun opened 1 year ago

ayubun commented 1 year ago

This is really not necessary but I think it could be fun to do; It can also help provide people with extra tooling to invoke manual updates / diagnose issues(?) / start/stop the bot / etc. Not fully sure where I want to take it yet but it would be something like:

❯ discord-ttl help

          Cmd             Description
          ===             ===========

discord-ttl    start     Start Discord TTL
               stop      Stop Discord TTL
               restart   Restart Discord TTL
               update    Update Discord TTL
               logs      Show the current logs      

I know that all of these are easily one-line docker-compose commands... it's really not necessary but I think it might be kinda fun to learn how to do. The main beneficial use-case would be if some maintenance commands required scripts/chained commands to be run, and making them into a one-liner for ease of self-hosting could be a fun UX goal.

ayubun commented 2 months ago

43