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
Copy file name to clipboardExpand all lines: CoMaNdO.Example/Example.cs
+4-4
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@ public void Load()
31
31
}
32
32
}
33
33
34
-
privatevoidEvents_Connected(stringchannel,stringnick,boolpartnered)// We register our commands after the bot is connected to the channel.
34
+
privatevoidEvents_Connected(stringchannel,stringnick,boolpartnered,boolsubprogram)// We register our commands after the bot is connected to the channel.
35
35
{
36
-
Commands.Add("!example",Command_Example);// We add the command with a handler that will perform the task we want it to.
36
+
Commands.Add(this,"!example",Command_Example);// We add the command with a handler that will perform the task we want it to.
publicstringAuthor{get{return"CoMaNdO";}}// Your name/nickname.
48
48
publicstringUniqueID{get{return"CoMaNdO.Example";}}// Will be used for data storage, to keep a unique space for your extension, you'd normally want to put your name/nickname and the name of the extension.
49
49
publicstringContactInfo{get{return"[email protected]";}}// Will be used to refer people for suggestions, error reports and more.
50
-
publicstringVersion{get{return"0.0.3";}}// The version of the extension.
50
+
publicstringVersion{get{return"0.0.4";}}// The version of the extension.
51
51
publicintApiVersion{get{return0;}}// The API version that it has been built with, changes to the API version will be posted on the blog. The use of ApiVersion 0 is if you believe that changes to the API won't affect your code, this is highly doubtable unless you're me.
0 commit comments