Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send command to server #109

Closed
Kqzz opened this issue Jul 27, 2021 · 1 comment
Closed

Send command to server #109

Kqzz opened this issue Jul 27, 2021 · 1 comment

Comments

@Kqzz
Copy link

Kqzz commented Jul 27, 2021

How would I go about sending a command to the server through the bot module? I saw in some other issues that the client.Chat method was used to send chat messages, but in the latest version this method doesn't appear to be available.

@Kqzz
Copy link
Author

Kqzz commented Jul 27, 2021

Nevermind! I was able to send a message through this code:

err = client.Conn.WritePacket(pk.Marshal(
        0x03,
        pk.String("/command"),
))

@Kqzz Kqzz closed this as completed Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant