Last active
August 29, 2015 14:13
-
-
Save nickknissen/ce63024b892aa3924cf4 to your computer and use it in GitHub Desktop.
test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newCommand := YakyCommand{ | |
Name: "join-room", | |
HelpText: "i will join a room", | |
Commmand: func(yaky *Yaky, user string, args []string) error { | |
yaky.JoinRoom(args[0]) | |
return nil | |
}, | |
} | |
yaky.AddCommand(newCommand) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment