Functions
HHMMSS
- HHMMSS(str: string): string
Parameters
Returns string
bool
Returns boolean
cleanText
- cleanText(text: string): string
Parameters
Returns string
confirmation
- confirmation(message: Message, author: any, validReactions?: any[], time?: number): Promise<string>
Parameters
message: Message
author: any
validReactions: any[] = []
time: number = 60000
Returns Promise<string>
daysAgo
- daysAgo(date: Date): string
Parameters
Returns string
formatUpper
- formatUpper(str: string): string
Parameters
Returns string
getreddit
Parameters
parseMS
- parseMS(val: number, options?: msOptions): string
Parameters
val: number
Optional options: msOptions
Returns string
parseString
- parseString(val: string): number
Parameters
Returns number
randint
- randint(max: number, min: number): number
Parameters
Returns number
random8ball
- random8ball(): Promise<string>
Returns Promise<string>
selectRandom
- selectRandom(array?: any[]): any
Parameters
Returns any
sleep
Parameters
Returns void
timer
- timer(timestamp: number): string
Parameters
Returns string
trimArray
- trimArray(arr?: any[]): string
Parameters
Returns string
Returns a string(00:00:00)