/// <summary> /// Does the strart up handling for Questionnaires for the QuestionnaireCanceled and QuestionniareFinished delegates /// </summary> /// <param name="bot"></param> public void _doStartUp(PalBot bot) { if (!DoneStartUp) { bot.GetManager <QuestionnaireManager>().QuestionnaireCanceled += (i) => { if (i == this) { OnCancel(); } }; bot.GetManager <QuestionnaireManager>().QuestionnaireFinished += (i) => { if (i == this) { OnFinish(); } }; DoneStartUp = true; } }
public static Commands CMan(this PalBot bot) { return(bot.GetManager <Commands>()); }
public static ForumManager FMan(this PalBot bot) { return(bot.GetManager <ForumManager>()); }
public static SimplePluginManager SMan(this PalBot bot) { return(bot.GetManager <SimplePluginManager>()); }
public static QuestionnaireManager QMan(this PalBot bot) { return(bot.GetManager <QuestionnaireManager>()); }