mirror of
https://github.com/osmarks/autobotrobot
synced 2024-12-21 22:10:27 +00:00
Fix list_deleted
This commit is contained in:
parent
510bdca28e
commit
d12a7833d2
@ -1,3 +1,4 @@
|
|||||||
# AutoBotRobot
|
# 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
|
@ -70,7 +70,7 @@ async def delete(ctx, *, raw_target):
|
|||||||
@bot.command(help="View recently deleted things, optionally matching a filter.")
|
@bot.command(help="View recently deleted things, optionally matching a filter.")
|
||||||
async def list_deleted(ctx, search=None):
|
async def list_deleted(ctx, search=None):
|
||||||
acc = "Recently deleted:\n"
|
acc = "Recently deleted:\n"
|
||||||
if search: acc = f"Recently deleted (matching {search}"
|
if search: acc = f"Recently deleted (matching {search}):\n"
|
||||||
csr = None
|
csr = None
|
||||||
if search:
|
if search:
|
||||||
csr = database.execute("SELECT * FROM deleted_items WHERE item LIKE ? ORDER BY timestamp DESC LIMIT 100", (f"%{search}%",))
|
csr = database.execute("SELECT * FROM deleted_items WHERE item LIKE ? ORDER BY timestamp DESC LIMIT 100", (f"%{search}%",))
|
||||||
|
Loading…
Reference in New Issue
Block a user