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

Publish IRC channel contents on MQTT topic #14

Open
chotee opened this issue Aug 28, 2018 · 5 comments
Open

Publish IRC channel contents on MQTT topic #14

chotee opened this issue Aug 28, 2018 · 5 comments

Comments

@chotee
Copy link
Member

chotee commented Aug 28, 2018

Since we have a IRC bot, lets publish the IRC contents to a MQTT topic so that other processes can pick up on it without having to run a bot on IRC. Since messages on the IRC are publicly available anyways, this should not be an issue. Private message to the bot should not be pushed to this MQTT topic.

@MerlijnWajer
Copy link
Member

Shall I just pick a path/topic, or do you have a suggestion?

@chotee
Copy link
Member Author

chotee commented Aug 28, 2018

"irc/techinc" ?

@MerlijnWajer
Copy link
Member

This is now partially implemented, but I need to make sure it sends the text to the right channel/topic.

@chotee
Copy link
Member Author

chotee commented Oct 19, 2018

The MQTT message for a IRC message contains the keys: "user" and "who" where the message is in "who". Which seems a bit odd. See this example:
irc/techinc {"user":"Chotee","who":"Wizzup: where do I submit bug-reports for the spacephone?"}
irc/techinc {"user":"Wizzup","who":"https://github.com/techinc/spacephone/issues"}
Maybe rename "who" to "message"
Since there's no "type" in the messages being send, I'll have to look at the set of keys to know what type it is.. but then, with the "who" that doesn't make much sense.

@chotee
Copy link
Member Author

chotee commented Oct 19, 2018

There's no message for "quit" IRC events. having that would help to identify the top channel bouncer...

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