fix: Fixed incorrect replacement of push template
This commit is contained in:
@@ -164,9 +164,10 @@ class Bot(BaseModel, AsyncEvent):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if select.enabled:
|
if select.enabled:
|
||||||
|
message = select.message
|
||||||
for arg, val in args.items():
|
for arg, val in args.items():
|
||||||
select.message = select.message.replace(arg, str(val))
|
message = message.replace(arg, str(val))
|
||||||
self.send_message(Message(id=target.id, content=select.message, type=target.type))
|
self.send_message(Message(id=target.id, content=message, type=target.type))
|
||||||
|
|
||||||
def send_live_on(self, up: Up, args: Dict[str, Any]):
|
def send_live_on(self, up: Up, args: Dict[str, Any]):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user