FruitieX / teleirc

A simple Telegram ↔ IRC gateway.
MIT License
273 stars 88 forks source link

Telegram & IRC handling code should be self-contained #80

Open FruitieX opened 8 years ago

FruitieX commented 8 years ago

Now that #79 is merged, there are still some small things that could be improved upon concerning code structure and placement. For example, Telegram code still knows enough about IRC to choose which IRC channel to send messages to. In my opinion this should be handled on an above layer (in src/index.js), and Telegram code should not care at all what protocol the messages are going to be sent to.

ImTheDeveloper commented 8 years ago

Thought about using a pub/sub structure? Im using a public bus event emitter right now so theres no need to ever couple together code. Another option would be to route everything through mqtt protocol. I like that method as I can then disconnect irc code from telegram code physically between different servers if I wanted to.

DGMurdockIII commented 8 years ago

please remove the bot just get in irc we dont this spamm in irc please stop it