Skip to content

Commit

Permalink
settings: handle every text-prefix as a string (#294)
Browse files Browse the repository at this point in the history
* :D

* add a default

Co-authored-by: Auguste Charpentier <[email protected]>

* Force default prefix

* Forgot cast to string

---------

Co-authored-by: Auguste Charpentier <[email protected]>
  • Loading branch information
MaxxMXSZ and laggron42 authored Jun 26, 2024
1 parent 1824429 commit a01c174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballsdex/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def read_settings(path: "Path"):
settings.bot_token = content["discord-token"]
settings.gateway_url = content.get("gateway-url")
settings.shard_count = content.get("shard-count")
settings.prefix = content["text-prefix"]
settings.prefix = str(content.get("text-prefix") or "b.")
settings.team_owners = content.get("owners", {}).get("team-members-are-owners", False)
settings.co_owners = content.get("owners", {}).get("co-owners", [])

Expand Down

0 comments on commit a01c174

Please sign in to comment.