Fixed some bugs in placeholder
This commit is contained in:
@@ -14,7 +14,7 @@ Actions
|
||||
|
||||
| Action Name | Description |
|
||||
| --- | --- |
|
||||
| player | Playing status. |
|
||||
| play | Playing status. |
|
||||
| listen | Listening status. |
|
||||
| watch | Watching status. |
|
||||
| stream | Streaming status. |
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user