mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
not print url when no url
This commit is contained in:
parent
6b91d52228
commit
f2e6bea108
@ -29,10 +29,11 @@ class Post:
|
||||
text += '\n{}'.format(self.text)
|
||||
if self._use_pic():
|
||||
msgs.append(await parse_text(text))
|
||||
if not self.target_type == 'rss':
|
||||
if not self.target_type == 'rss' and self.url:
|
||||
msgs.append(self.url)
|
||||
else:
|
||||
text += '详情: {}'.format(self.url)
|
||||
if self.url:
|
||||
text += '详情: {}'.format(self.url)
|
||||
msgs.append(text)
|
||||
for pic in self.pics:
|
||||
msgs.append("[CQ:image,file={url}]".format(url=pic))
|
||||
|
Loading…
x
Reference in New Issue
Block a user