CSSUoB / CSSUoB/TeX-Bot-Py-V2

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

Offen
#235 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
good first issue
Vorherrschende Sprache
Python
Sterne
1
Forks
11
Ø Merge
20 Std. 7 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.