WieeRd / ClockBot

Most interesting yet least useful bot on Discord
Mozilla Public License 2.0
6 stars 1 forks source link

feat: `config.toml` and secret management #6

Open WieeRd opened 5 months ago

WieeRd commented 5 months ago

Thinking-in-Progress. Everything is subject to change.

What to Include

Secret Management Candidates

Schema

prefix = ["%", "ㅅ"]

[palette]
info = 0x0000FF
warn = 0x00FF00
error = 0xFF0000

[token]
env = "BOT_TOKEN"

Tasks

WieeRd commented 5 months ago

One way of solving internal bikeshedding is to support all 3 options.

[token]
# only one key can be specified
value = "{TOKEN}"
env = "BOT_TOKEN"
command = ["bw", "get", "notes", "ClockBot"]

I should consider: