1.15.1 bug fix on images

This commit is contained in:
Klemek
2021-06-01 09:52:14 +02:00
parent b1eddf0b4b
commit 99cd2b301b
8 changed files with 86 additions and 50 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ class RandomScanner(HistoryScanner):
"rand",
"Read a random message (add text to filter like %find)",
args=[
"image - pull an image instead of a message",
"image/gif - pull an image instead of a message",
"spoiler:allow/only - allow spoiler images",
],
)
@@ -24,7 +24,7 @@ class RandomScanner(HistoryScanner):
async def get_results(self, intro: str) -> List[str]:
if self.images_only:
return await self.history.to_string_image(
type="random", spoiler=self.spoiler
type="random", spoiler=self.spoiler, gif_only=self.gif_only
)
else:
return self.history.to_string(type="random")