Commit Graph

7 Commits

Author SHA1 Message Date
ubq323 3c3ffbb036 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.
2022-01-18 23:58:39 +00:00
osmarks 9936827f4d Logging message fixes, bridge overhaul, associated fixes 2021-03-25 17:56:29 +00:00
osmarks d8344d9759 Unified bridge system
ABR can now bridge to IRC, because of course.
It can also bridge Discord to Discord.
Bridging works transitively because I have a fairly elegant (if I do say so myself) way of handling it:
links are internally point-to-point, and when something is sent in a channel with links configured the bot traverses the graph of links to work out where to send to.
It is planned to expose a private websocket API to synchronize with other servers providing virtual channels.
This system is now used for telephone calls.
There may be issues in certain situations due to the lack of (meaningful) transaction support in aiosqlite.
The telephone command has been extended with (un)link commands, currently only for me as they can link anywhere.
2021-02-25 17:48:06 +00:00
osmarks 7b11e95542 refactoring, userdata module 2021-02-09 17:17:19 +00:00
osmarks 6d18a5c56e change things, somehow 2021-01-14 09:38:32 +00:00
osmarks c4fdf3d17a config reload command 2020-11-25 19:04:10 +00:00
osmarks f902ca0d64 modularize it, add mostly working phone function 2020-10-11 14:40:39 +01:00