Log search plugin for Dragory's ModMail
This plugin allows everyone with permission to use the MM bot to search through the logs of a specified user or all logs ever created.
If the command is run in a thread, the user it is with will always be taken as the search target.
Please read the documentation below to learn how the commands work!
This plugin displays links - if your logStorage
is not set to local
it will only display the Thread number.
There are no intentions to change this behavior as sending (potentially) tenths or hundreds of attachments is a bad idea.
Use the !log <number>
command to get specific log files instead.
Make sure your running at least v3.3.2 of Modmail. in your config.ini file, make a new line and add:
plugins[] = npm:MMPlugins/LogSearch
Restart your bot!
Any system messages and commands are not taken into account when searching and are ignored.
userId
needs to be the users proper ID, obtainable in developer mode.
Signature: logsearch <search query>
This will return a list of all logs that contain what you searched for.
The search will be executed for the current threads user.
Signature: logsearch <userId> <search query>
This will return a list of all logs that contain what you searched for.
The search will be executed for the userId you pass to the command.
Signature: logsearch global <search query>
This will return a list of all logs that contain what you searched for.
The search will be executed globally, checking every log ever created.