Giter Club home page Giter Club logo

Comments (4)

ImTheDeveloper avatar ImTheDeveloper commented on September 9, 2024

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.

from teleirc.

walliski avatar walliski commented on September 9, 2024

Not at all. Just random bots in general ;).
Went through this with FruitieX IRL, suppose I can elaborate here also.

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.

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.

from teleirc.

ImTheDeveloper avatar ImTheDeveloper commented on September 9, 2024

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.

from teleirc.

 avatar commented on September 9, 2024

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.

from teleirc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.