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
|
# Guilds to test slash commands in
|
||||||
# Ex: 123,456,789
|
# Ex: 123,456,789
|
||||||
SLASH_TEST_GUILDS: List[int] = list(
|
_guilds = os.getenv("SLASHTESTGUILDS", "").replace(" ", "")
|
||||||
map(lambda x: int(x),
|
SLASH_TEST_GUILDS: List[int] = list(map(lambda x: int(x), _guilds.split(","))) if _guilds else []
|
||||||
os.getenv("SLASHTESTGUILDS", "").replace(" ", "").split(",")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue