mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-12 18:15:46 +02:00
Fix test guild parsing for empty strings
This commit is contained in:
parent
5e946ed5d3
commit
1c82bf959b
1 changed files with 2 additions and 5 deletions
|
|
@ -36,8 +36,5 @@ STATUS_MESSAGE = os.getenv("STATUSMESSAGE", "with your Didier Dinks.")
|
|||
|
||||
# Guilds to test slash commands in
|
||||
# Ex: 123,456,789
|
||||
SLASH_TEST_GUILDS: List[int] = list(
|
||||
map(lambda x: int(x),
|
||||
os.getenv("SLASHTESTGUILDS", "").replace(" ", "").split(",")
|
||||
)
|
||||
)
|
||||
_guilds = os.getenv("SLASHTESTGUILDS", "").replace(" ", "")
|
||||
SLASH_TEST_GUILDS: List[int] = list(map(lambda x: int(x), _guilds.split(","))) if _guilds else []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue