mozilla-b2g / B2GOS-community

DEPRECATED - Tasks management for the B2G OS working groups
11 stars 4 forks source link

Set up a Telegram ↔ IRC gateway #7

Closed ensowhat closed 2 years ago

ensowhat commented 8 years ago

This is to be done between https://telegram.me/B2GOS and the #fxos IRC chan on irc.mozilla.org.

This bot was setup, but got banned for flooding: https://github.com/FruitieX/teleirc We can probably hack it to implement a limitation on the number of lines/sec. or find another solution.

ethanrjones97 commented 8 years ago

I can take a look at this. I have some experience with simple telegram bots.

lapineige commented 8 years ago

What about "whitelisting" it on the IRC channel ?

Waterloo commented 8 years ago

Hi , i can help with this , i have created a bot for the purpose, https://github.com/MozillaKerala/botzilla

ensowhat commented 8 years ago

@lapineige I'll ask again, but it doesn't seem to be in the policy @Waterloo @DoublePlusGood23 Great! Do you mind if I assign this issue to both of you?

lapineige commented 8 years ago

I'll ask again, but it doesn't seem to be in the policy

@ensowhat If that's right, I'm curious to know why (just for the information, it's no a critic, I want to understand) Do you know what is the flooding limit ? (to know if it's not too low, as it might create issue in case of high activity)

@Waterloo @DoublePlusGood23 thanks for your help :)

ensowhat commented 8 years ago

@fabricedesre Can you please have a look on the white listing options we have?

lapineige commented 8 years ago

@Waterloo @DoublePlusGood23 let's wait to know if white-listing is possible - if no I will ping you to know if you still can help here :smiley:

ethanrjones97 commented 8 years ago

I think @Waterloo 's bot is a better fit, it exists and uses Node.js over Python3. @lapineige What do you mean by "whitelisting" ?

lapineige commented 8 years ago

@lapineige What do you mean by "whitelisting" ?

Remove the limitation in number of messages, only for the bot - to avoid ban. It's a lot easier than patching the bot.

I think @Waterloo 's bot is a better fit, it exists and uses Node.js over Python3

I don't know any of those bots, but well teleirc as been setup in the past, so we know how to do it again, that make it easy. What's the advantages of the bot you're talking about ?

ensowhat commented 8 years ago

ping @DoublePlusGood23 ^

Waterloo commented 8 years ago

@lapineige can you explain the white listing part ? Who sets the limitations ?

lapineige commented 8 years ago

Hi @Waterloo :) I can't, I don't know how it's managed, but @fabricedesre might have more information. But the main idea is that there is a limit of message/unit of time to avoid flooding (and it's low), so the bot is banned if we don't white list it (if possible) / adapt it.

fabricedesre commented 8 years ago

We have a fairly aggressive flood limit on the #fxos irc channel to keep spammers away. Unfortunately it sometimes bites us back in legitimate situations:

This flood limit can be changed for the channel by any channel operator, but I have yet to find if we can whitelist a given nickname.

Waterloo commented 8 years ago

@fabricedesre , what are the limits ?

fabricedesre commented 8 years ago

Our current mode is +trnjf 4:2 *5:4 I think if you don't send more than one line per second you should be fine.

lapineige commented 8 years ago

Our current mode is +trnjf 4:2 *5:4

Can you explain what that mean ?

I think if you don't send more than one line per second you should be fine.

This include splitting message with multiple lines, right ? Don't you think it's so low that it can be an issue, like people replying on irc before the message is completely send ?

lapineige commented 8 years ago

ping @fabricedesre Any news ?

fabricedesre commented 8 years ago

I will make the bot be a half-op in the channel. That may let him not be subject to the flood limits.

lapineige commented 8 years ago

It's a good news ! :)

So @Waterloo @DoublePlusGood23 do you have some time to setup the bot ?

lapineige commented 8 years ago

ping @Waterloo @DoublePlusGood23

ethanrjones97 commented 8 years ago

@lapineige I can host the bot, sure. https://github.com/FruitieX/teleirc right?

lapineige commented 8 years ago

Yes it's this one. Should we setup a new telegram group just for testing the bot ? (to avoid having to prevent people to post thousands of messages while we setup it ^^)

Ryuno-Ki commented 8 years ago

I'd recommend it. This way, people can decide, whether they want to have their messages synched with IRC or not.

ethanrjones97 commented 8 years ago

I have a bot running on digital ocean. Going to run a few more tests, but it seems to work well. screenshot from 2016-06-15 20-42-37

lapineige commented 8 years ago

Up :) @DoublePlusGood23 are you ready to adding the bot ?

ethanrjones97 commented 8 years ago

@lapineige Yup, it seems to work fine :)

lapineige commented 8 years ago

Ok, @fabricedesre is in holidays, let's wait for him before activating the bot.

ethanrjones97 commented 8 years ago

@lapineige Sounds good. Feel free to contact me on telegram @fabricedesre

lapineige commented 8 years ago

Up @DoublePlusGood23 @fabricedesre

lapineige commented 8 years ago

Ping @DoublePlusGood23 :)

lapineige commented 8 years ago

up :)