From d12a7833d20480d23135ff5a656adf70a27efe2a Mon Sep 17 00:00:00 2001 From: osmarks Date: Sat, 18 Apr 2020 13:17:31 +0100 Subject: [PATCH] Fix list_deleted --- README.md | 3 ++- src/main.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b066fa..d4706c6 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # AutoBotRobot -https://discordapp.com/oauth2/authorize?&client_id=509849474647064576&scope=bot&permissions=68608 \ No newline at end of file +A Discord bot which exists. +You can add it to your server with this link: https://discordapp.com/oauth2/authorize?&client_id=509849474647064576&scope=bot&permissions=68608 \ No newline at end of file diff --git a/src/main.py b/src/main.py index 713619b..1359962 100644 --- a/src/main.py +++ b/src/main.py @@ -70,7 +70,7 @@ async def delete(ctx, *, raw_target): @bot.command(help="View recently deleted things, optionally matching a filter.") async def list_deleted(ctx, search=None): acc = "Recently deleted:\n" - if search: acc = f"Recently deleted (matching {search}" + if search: acc = f"Recently deleted (matching {search}):\n" csr = None if search: csr = database.execute("SELECT * FROM deleted_items WHERE item LIKE ? ORDER BY timestamp DESC LIMIT 100", (f"%{search}%",))