negan-module-hall-of-fame
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Hall of fame

This is a simple hall of fame module for negan-bot.

"Hall of fame". Users can "like" messages by reacting with ⭐. If at least 7 users like a message, it will be reposted into a channel specified by server owner or mod.

Configuration

The threshold can be configured.

Example:

import { NeganBot } from 'negan-bot';
import { HallOfFameModule } from 'negan-module-hall-of-fame';

const bot: NeganBot = new NeganBot();


bot.registerModules([
    HallOfFameModule
]);

const hofModule: HallOfFameModule | undefined = bot.getModule(HallOfFameModule);
if (hofModule) {
    hofModule.setThreshold(2);
}

Readme

Keywords

none

Package Sidebar

Install

npm i negan-module-hall-of-fame

Weekly Downloads

1

Version

1.2.2

License

GPL-2.0-only

Unpacked Size

23.3 kB

Total Files

8

Last publish

Collaborators

  • s-k-lieren