Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotHelper.prototype.shouldBotBePmc
Re-export
import { BotHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Choose if a bot should become a PMC by checking if bot type is allowed to become a Pmc in botConfig.convertFromChances and doing a random int check

Parameters

botRole: string

the bot role to check if should be a pmc

Returns

boolean

true if should be a pmc