GithubHelp home page GithubHelp logo

Comments (9)

sm00th avatar sm00th commented on July 19, 2024

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.

Kays avatar Kays commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

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.

jgeboski avatar jgeboski commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

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.

romibi avatar romibi commented on July 19, 2024

Why not just (only) ignore own messages if they match the last sent message(s)?

from bitlbee-discord.

sm00th avatar sm00th commented on July 19, 2024

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.

romibi avatar romibi commented on July 19, 2024

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.

fiiim avatar fiiim commented on July 19, 2024

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)

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.