factorized help and triple-quote multi-line
This commit is contained in:
@@ -3,14 +3,13 @@ from typing import List
|
||||
# Custom libs
|
||||
|
||||
from .history_scanner import HistoryScanner
|
||||
from utils import generate_help
|
||||
|
||||
|
||||
class LastScanner(HistoryScanner):
|
||||
@staticmethod
|
||||
def help() -> str:
|
||||
return super(LastScanner, LastScanner).help(
|
||||
cmd="last", text="Read last message"
|
||||
)
|
||||
return generate_help("last", "Read last message")
|
||||
|
||||
def __init__(self):
|
||||
super().__init__(help=LastScanner.help())
|
||||
|
||||
Reference in New Issue
Block a user