import { NodeCG } from "nodecg-types/types/server" ; import { Result , emptySuccess , success , ServiceBundle , Logger } from "nodecg-io-core" ; import { TemplateClient } from "./templateClient" ; export interface TemplateConfig { placeholder : string ; } export { TemplateClient } from "./templateClient" ; module . exports = ( nodecg ) => { new TemplateService ( nodecg , "template" , __dirname , "../schema.json" ) . register ( ) ; } ; class TemplateService extends ServiceBundle < TemplateConfig , TemplateClient > { async validateConfig ( _ ) { return emptySuccess ( ) ; } async createClient ( config , logger ) { const client = TemplateClient . createClient ( config , logger ) ; logger . info ( "Successfully created template client." ) ; return success ( client ) ; } stopClient ( _ , logger ) { logger . info ( "Successfully stopped template client." ) ; } removeHandlers ( _ ) { } }