add: main function

This commit is contained in:
2026-02-14 12:09:24 -08:00
parent 88bcf2e507
commit 02c0eebdd9
6 changed files with 238 additions and 64 deletions

View File

@@ -69,6 +69,11 @@ func (c *Client) SetDifficulty(difficulty string) error {
return fmt.Errorf("not implemented")
}
func (c *Client) Say(msg string) error {
_, err := c.Execute("/say " + msg)
return err
}
// GetServerInfo returns basic server information
func (c *Client) GetServerInfo() (string, error) {
return c.Execute("version")