add tel searchrecent and tel delrecent commands

these look through all discord channels bridged to the given channel
(including that channel itself) and search for messages matching
the given query. the delrecent command, after asking for confirmation,
will then delete all of those messages that it can across all the channels.
it is capable of deleting messages sent by our own webhooks even if
we don't have manage message permissions in the channel in question.

the user interface is not amazing but these are both extpriv-only and
only send any outputs in dms so this probably isn't very important.
This commit is contained in:
ubq323
2022-01-18 23:58:39 +00:00
parent 31491d7ba9
commit 3c3ffbb036
3 changed files with 94 additions and 5 deletions
+1 -1
View File
@@ -78,4 +78,4 @@ def setup(bot):
if ext == "all":
for ext in util.extensions: bot.reload_extension(ext)
else: bot.reload_extension(ext)
await ctx.send("Done!")
await ctx.send("Done!")