You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
i am learning to make a chatbot with mcc.
i found ChatBotCommand in chatbot.cs ,but i dont know how to use it.
Please tell me how to use this class,or other way to register a command,thanks a lot.
My attempt is as follows
using MinecraftClient.Scripting;namespace MinecraftClient.ChatBots;publicclassMyBot:ChatBot{publicoverridevoidInitialize(){base.Initialize();new ChatBotCommand("test","print a test message","",new CommandRunner(RunTest));//or maybe i need pass this object into a registration method?
LogToConsole("Bot Loaded");// this message can be printed}publicstringRunTest(stringcommand,string[]args){
LogToConsole("it work!");return"end";}}
and it dosent work ;(
The text was updated successfully, but these errors were encountered:
hi
i am learning to make a chatbot with mcc.
i found ChatBotCommand in chatbot.cs ,but i dont know how to use it.
Please tell me how to use this class,or other way to register a command,thanks a lot.
My attempt is as follows
and it dosent work ;(
The text was updated successfully, but these errors were encountered: