diff --git a/PLACEHOLDERS.md b/PLACEHOLDERS.md index bc30e6d..10b5a99 100644 --- a/PLACEHOLDERS.md +++ b/PLACEHOLDERS.md @@ -14,7 +14,7 @@ Actions | Action Name | Description | | --- | --- | -| player | Playing status. | +| play | Playing status. | | listen | Listening status. | | watch | Watching status. | | stream | Streaming status. | diff --git a/addons/placeholders.py b/addons/placeholders.py index 51070a0..d08d097 100644 --- a/addons/placeholders.py +++ b/addons/placeholders.py @@ -34,9 +34,7 @@ class Placeholders: for key in keys: value = self.variables.get(key.lower(), None) - if value is None: - continue - - msg = msg.replace(f"@@{key}@@", str(value())) + if value: + msg = msg.replace(f"@@{key}@@", str(value())) return msg \ No newline at end of file