Comments (9)
This is not likely to happen for a couple of reasons:
- while bitlbee does support the notion of "selfmessages" (aka messages sent from other clients/locations) it does not export this functionality to plugins, only to internal protocol implementations (which might be a bug).
- even if we bypass(or fix) the first issue, there is no way to tell apart a message sent from bitlbee and a message sent from webapp/mobile in discord. So by printing messages from "self" we'll get an echo for every message sent from bitlbee.
from bitlbee-discord.
Okay; I understand. I, personally, would not mind seeing my own message duplicated if that is the only "bug" because the conversation would at least be continuous (not broken), similar to how bitlbee's twitter echos my tweet back at me. I can understand if others do not like seeing their message echo'd back at them.
from bitlbee-discord.
Leaving this open, maybe someone can come up with a sane solution or they'll change the api to include client info for every message. For reference a gist with a patch that enables selfmessages and kinda tries to track sent messages but fails miserably most of the time.
from bitlbee-discord.
Proper self messaging support has been implemented upstream (see: bitlbee/bitlbee@345577b). It should be quite simple to do. I would look at the Facebook plugin for an example (bitlbee/bitlbee-facebook@55182f5).
from bitlbee-discord.
Proper self messaging support has been implemented upstream (see: bitlbee/bitlbee@345577b)
Thanks, but while it solves the first issue from my previous comment, I still have no means of canceling server echoes, unless discord changes their API.
from bitlbee-discord.
Why not just (only) ignore own messages if they match the last sent message(s)?
from bitlbee-discord.
Why not just (only) ignore own messages if they match the last sent message(s)?
Storing one message is not enough due to possible latencies, storing all messages until you get an ack could work, but again you need to make sure that that "cache" is getting cleaned if for some reason you don't get a server echo. All in all this is a lot of unnecessary work for a feature that I don't believe to be necessary.
So I am not doing this unless there is an easy way to determine message's origin from discord's data. I am willing to accept patches though.
from bitlbee-discord.
hm true … and i assume bitlbee does not support preventing to show sent messages …
that way you could just only show the echos …
from bitlbee-discord.
It works the other way around though, if you type something in the bitlbee-discord it shows in the discord app. But not if you type stuff in the discord app. Why is this? cant this behavior be replicated or something?
from bitlbee-discord.
Related Issues (20)
- [FEATURE] HOT 2
- Add variable auto_join_whitelist ?
- discord - Login error: Connection timeout HOT 2
- Https links appear in the wrong query HOT 1
- Embeds not showing
- Using CFLAGS and LDFLAGS on command line to find bitlbee includes and libs HOT 6
- Threads support HOT 3
- Backlog fetching blocks Discord websocket heartbeat, Bitlbee response to PING HOT 5
- Login in is broken with glib2 >2.68 HOT 11
- Failed to switch to websocket mode HOT 2
- token location described in README out of date HOT 3
- Status aliases broken - "/away DND - some text" works, "/away Busy - some text" does not HOT 4
- Will bitlbee-discord work with a big account? HOT 3
- No incoming messages HOT 7
- Provide way to manually request backlog HOT 3
- Seeing own messages after change to new usernames HOT 1
- joining a discord channel doesn't show anyone else messages HOT 1
- Crashes on discord_parse_message
- discord - Login error: Failed to switch to websocket mode (and 400 bad request from cloudflare) HOT 3
- Add support for turning custom stickers into URLs (e.g. larger custom emoji)
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 bitlbee-discord.