1
0
mirror of https://github.com/osmarks/autobotrobot synced 2024-12-21 14:00:27 +00:00

Fix list_deleted

This commit is contained in:
osmarks 2020-04-18 13:17:31 +01:00
parent 510bdca28e
commit d12a7833d2
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
# AutoBotRobot
https://discordapp.com/oauth2/authorize?&client_id=509849474647064576&scope=bot&permissions=68608
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

View File

@ -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}%",))