Comments (4)
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.
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.
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.
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)
- Telegram codeblocks should go into pastebin and teleirc might take care of it like images or stickers HOT 5
- Only oneway HOT 3
- "not found in config" errors after upgrade HOT 9
- TypeScript "rewrite"
- Social card for this repo heads to 404 error HOT 1
- Say something when files are uploaded even if mediaupload is disabled
- Optionally give IRC users Telegram links for stickers and files. HOT 2
- Infinite no chat_id set when group is created and updated to supergroup before enabling private message handling HOT 2
- Add support for CertFP
- SASL plain fails HOT 7
- Current irc framework does not handle rejoins
- IPFS support for file uploads
- "left_chat_participant", "new_chat_participant" and "new_chat_photo" messages should be disabled when config.soloUse is active
- "error: channel <channel> not found in config!" needs a more verbose log level
- teleirc might spam IRC channels with error messages
- use XDG_CONFIG_HOME
- Just show image url and don't serve the image HOT 2
- teleirc not relaying messages from other Telegram bots to IRC HOT 2
- Meta: is the Telegram group relayed to freenode #teleirc ?
- Is teleirc maintained? Should the repository point to matterbridge instead and be archived? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teleirc.