UNPKG

sadbot

Version:

SadBot is a tooling _to thwart_ (someone/"somebot") from accomplishing an action in a given resource, it blocks, throttles and time-restricts the access like a security guard guy when the party is packed or you're not so sober to be welcome.

14 lines (13 loc) 512 B
import { SadBotBase } from './SadBotBase'; export declare type BlockedList = { name: string; values: string[]; }; export declare class Blocking extends SadBotBase { prefix: string; isBlocked: (list: string, value: string) => Promise<boolean>; block: (list: string, value: string) => Promise<number>; unblock: (list: string, value: string) => Promise<number>; getBlockedList: (list: string) => Promise<BlockedList>; getAllBlockedLists: () => Promise<BlockedList[]>; }