first
This commit is contained in:
13
msg/UserPostMsg.py
Normal file
13
msg/UserPostMsg.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from bot.HtmlMsg import HtmlMsg
|
||||
|
||||
|
||||
class UserPostMsg(HtmlMsg):
|
||||
|
||||
def get_msg(self, data=None) -> str:
|
||||
if data is None:
|
||||
data = {}
|
||||
content = "{content}".format(content=data['post']['content'])
|
||||
msg = "{content}".format(content=content)
|
||||
|
||||
msg = self.replace_tag_with_content(msg, "secure")
|
||||
return self.get_stylized_msg(msg)
|
Reference in New Issue
Block a user