add redeem name warning to init
This commit is contained in:
parent
7dfc8faae7
commit
7722bdf608
|
@ -36,6 +36,12 @@ def create_app(test_config=None):
|
|||
raise RuntimeError("Prefix is >1 character. "
|
||||
"Change your config to set 1-character prefix.")
|
||||
|
||||
# Check for spaces in redeems (they won't work)
|
||||
for redeem, _ in app.config['REDEEMS']:
|
||||
if ' ' in redeem:
|
||||
app.logger.warning(f"Redeem {redeem} has spaces in its name. It will be impossible to redeem.")
|
||||
|
||||
|
||||
# prepare webhooks and redeem dashboard blueprints
|
||||
from . import owncast_webhooks
|
||||
from . import tlapbot_dashboard
|
||||
|
|
Loading…
Reference in New Issue