Skip to content

A Matrix bot to use grep for searching in large messages

Notifications You must be signed in to change notification settings

JojiiOfficial/Matrix-Grep-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Matrix-Grep-Bot

A Matrix bot to use grep for searching in large messages using my own API

Download

You can download the bot here

Install

Just run the bot once (java -jar MatrixGrepBot.jar) to create the config.json or create a file in the same directory and paste

{
  "host": "http://matrix.com",
  "username": "grepbot",
  "password": "",
  "usertoken": ""
}

then fill the json with your data and save it. Then start the bot again. Thats it.
Note: If a password is given, the config removes it and replace the token with the token of the given user If you want to use a usertoken, be sure the passwordfield is blank!

Usage

Invite the bot to a room. It will join automatically. Then reply on a message with
!grep <search pattern> or ! grep <search pattern>


Note Currently the bot only supports casesensitive search

The nextBatch-file is a file you shouldnt delete unless you want to run all past !grep commands again because it saves the sync-state

About

A Matrix bot to use grep for searching in large messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages