UNPKG

pockybot

Version:

Spark bot that handles team recognition

13 lines (12 loc) 698 B
import { PegGivenData } from '../models/peg-given-data'; import Config from './config-interface'; export default class Utilities { config: Config; constructor(config: Config); sleep(seconds: number): Promise<void>; getRandomInt(num: number): number; commentIsPenalty(comment: string, keywords: string[], penaltyKeywords: string[]): boolean; getPenaltyPegs(givenPegs: PegGivenData[], keywords: string[], penaltyKeywords: string[]): PegGivenData[]; getNonPenaltyPegs(givenPegs: PegGivenData[], keywords: string[], penaltyKeywords: string[]): PegGivenData[]; pegValid(comment: string, requireKeywords: number, keywords: string[], penaltyKeywords: string[]): boolean; }