diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 753f594d..a49a05dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - "auto" - repo: https://github.com/myint/docformatter # Formats docstrings following PEP 257 - rev: v1.6.0 + rev: v1.6.5 hooks: - id: docformatter args: diff --git a/mmpy_bot/plugins/example.py b/mmpy_bot/plugins/example.py index 80414ee5..8850a9f1 100644 --- a/mmpy_bot/plugins/example.py +++ b/mmpy_bot/plugins/example.py @@ -164,8 +164,10 @@ def cancel_jobs(self, message: Message): @listen_to("^sleep ([0-9]+)$", needs_mention=True) async def sleep_reply(self, message: Message, seconds: str): """Sleeps for the specified number of seconds. + Arguments: - - seconds: How many seconds to sleep for.""" + - seconds: How many seconds to sleep for. + """ self.driver.reply_to(message, f"Okay, I will be waiting {seconds} seconds.") await asyncio.sleep(int(seconds)) self.driver.reply_to(message, "Done!")