Skip to content

MMPlugins/LogSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log search plugin for Dragory's ModMail

Description

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!

Attention

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.

Setup:

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!

Usage

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.

In A Thread

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.

In The Inbox Server

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.

About

Log search plugin for Dragory's ModMail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published