Open walliski opened 9 years ago
Let me guess @walliski planetarion bots?
Theres a few ways to do this.
Firstly you can define in the config the name of your "eff bot" - any text from this can be ignored. However theres a few cases where you may want to not ignore. So you may wish to ignore a command which is done via ! but not a command done via . or @ for example. This is down to your implementation and I expect @FruitieX will be unaware of how things work in PA to implement in a manner that works for you. What I'm suggesting then is to detail your use case as I think the original post might lead to a bad implementation for you. The ! @ . ignore cases are important as you may wish to relay certain commands back to telegram, where as others not. E.g. !eff 1k pulsar is ignored but if you did @eff 1k pulsar it is sent to telegram. You may wish to also only ignore commands in some channels and not others. p3nguins use a scanner channel and scans <<-->> telegram where you need to see eff bot links for scans and responses.
Next I expect you would like to do !eff commands from telegram which would relay to IRC and your EFFBOT would respond with the command output There's a couple of ways I have seen this implemented, one by p3nguins and one by ascendancy bots. I wont use this comment to discuss as its probably a different issue that should be raised so better discussed there.
Not at all. Just random bots in general ;). Went through this with FruitieX IRL, suppose I can elaborate here also.
1) One might have bots on a channel that you want to ignore completely. Use cases here varies a lot, it could be RSS spamming, sending messages from events in games such as Team Fortress 2, or similar.
2) For example I have a bot that does this:
[11:22] < Walliski > http://google.com
[11:22] < Bot > [ Google ] - google.com
However this is not at all needed in telegram. So it would be nice if the bot could be made to ignore all messages that are from Bot, and matches regex [ .+ ] - .+\..+
, or simply only the regex. However this bot also does a couple of other things that can be of "use" in telegram, or have relevance in the chat history:
[11:27] < Walliski > .g team fortress
[11:27] < Bot > Walliski: http://www.teamfortress.com/
Here it makes sense that even the telegram users see that something has been googled, and what the result was.
I understand where you are coming from with this and regex is probably a nice route for ignores or even "blocking" of specific names in an ignore list as part of config works nicely to.
https://sameroom.io/ does this by watching for the characters ^^^
at the beginning of any IRC message (or Telegram message!) and not forwarding those to the other side. It works pretty well because usually you can configure a bot to prepend some characters.
Would be nice to be able to ignore different users or messages based on regex so that they would not be sent from irc to telegram. For example ignoring some output from ircbots sending titles from URLs, or completly ignoring ircbots.