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

Reading a private message #90

Open
enesbakis opened this issue Sep 19, 2019 · 1 comment
Open

Reading a private message #90

enesbakis opened this issue Sep 19, 2019 · 1 comment

Comments

@enesbakis
Copy link

The channel can do how a special command is executed in the message area.

Ex: / ban nick 3600

I need to read the channel message area

@whookie
Copy link

whookie commented Sep 19, 2019

The / annotated commands in the chat section are not made for query bots, they are made for plugins and LUA scripts.
In order to read a channel message, the bot has to be inside the channel and must subscribe to the channel message event (refer to the documentation).
As far as I know you can subscribe to channel id 0, which stands for the whole server, but I think it can only receive events like people moving through the channels, but no messages.

Short story, write a clientside LUA script or C / C++ plugin to support chat commands. And they are usually only for you.

EDIT: (Because the title means something different than the question)
You can of course always subscribe to the private messages, and receive messages from clients sent directly to the query bot.

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

2 participants