1.15.1 bug fix on images
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user