import { MatchBotDetailsCacheService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Cache bots in a dictionary, keyed by the bots name, keying by name isnt ideal as its not unique but this is used by the post-raid system which doesnt have any bot ids, only name
Constructors
new
MatchBotDetailsCacheService(logger: ILogger, localisationService: LocalisationService)Properties
protected
botDetailsCache: Record<string, IBotBase>protected
localisationService: LocalisationServiceprotected
logger: ILoggerMethods
clearCache(): void
Clean the cache of all bot details
getBotByNameAndSide(botName: string, botSide: string): IBotBase
Find a bot in the cache by its name and side