tennu-correction

8.1.3 • Public • Published

tennu-correction

A plugin for the tennu irc framework.

Search and replace text in previous messages.

Examples

  • 8:22 Havvy: Hello world
  • 8:23 Ownix: s/world/mars
  • 8:24 Bot: Correction, Hello mars

Examples (random replace)

  • 8:22 Havvy: Hello world
  • 8:23 Ownix: ra/surprise
  • 8:24 Bot: Correction, Hello surprise
  • OR
  • 8:24 Bot: Correction, surprise world

Configuration

"correction": {
    "lookBackLimit": 60, // memory usage caution, id keep this number reasonable.
},

Exports

addMiddleware(): Lets you decide what happens after someone does s/whatever/everwhat

Installing Into Tennu

See Downloadable Plugins here.

Todo:

  • Tests

Readme

Keywords

none

Package Sidebar

Install

npm i tennu-correction

Weekly Downloads

1

Version

8.1.3

License

ISC

Last publish

Collaborators

  • victorioberra