CSSUoB / CSSUoB/TeX-Bot-Py-V2

Add extra check to bot startup to ensure all roles within `STATISTICS_ROLES` list exists

Aperta
#235 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
good first issue
Lingua principale
Python
Stelle
1
Fork
11
Merge medio
20h 7m
PR unite (30g)
2

Descrizione

This check will need to be performed in both the `on_ready` event, and also within the future command that will allow changing of config variables (likely to be `/config set `), implemented within #221.

It has to be called from the event/command side rather than from within the config variable loading process, because the config loading is done before the connection to Discord is made (so the existent roles could not be retrieved).

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating the Python bot's on_ready event and the configuration command planned in #221. Read how STATISTICS_ROLES is loaded and how Discord roles can be retrieved after connection. Done means both startup and configuration changes check that every role named in STATISTICS_ROLES exists.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.