allow queries in %first/%history/%last

This commit is contained in:
Klemek
2021-05-19 11:59:19 +02:00
parent c101002b6c
commit 1a17e232ed
4 changed files with 28 additions and 8 deletions
+2 -2
View File
@@ -9,10 +9,10 @@ from utils import generate_help
class LastScanner(HistoryScanner):
@staticmethod
def help() -> str:
return generate_help("last", "Read last message")
return generate_help("last", "Read last message (add text to filter like %find)")
def __init__(self):
super().__init__(help=LastScanner.help())
super().__init__(help=LastScanner.help(), allow_queries=True)
def allow_message(self, *_) -> bool:
return True