Comments (5)
Tupperbox does this by adding a \u200a
(invisible space) character between the first and second character of the webhook username.
This is now simpler to implement because of the LastMessageCache. Maybe worth looking into, not sure if this is still an issue?
from pluralkit.
Currently unsure how to effectively solve this. I know adding a space "breaks" the grouping but I'm not sure what state to keep to do this properly. "if a proxy has the same name as the last message proxied in the same channel but different member id" doesn't work because that a) breaks once, then unbreaks, which will break the group twice, and b) not work if you're interrupted by an unproxied message.
from pluralkit.
I think the stateful idea you had is almost there? You keep track of the name and userid of the last proxied message, as well as whether or not you added a space. Then when the new proxied message has the same name:
- if it's by the same user, add the same suffix as before (space or nothing)
- if it's by a different user, add the opposite suffix (nothing or space)
If you're interrupted by an unproxied message this might add a space when it doesn't need to, but that doesn't cause any problems. If the same person proxies the same name several times in a row, it'll either add the space to all of the messages or none of them.
from pluralkit.
Yeah, that makes sense. That'd require me to refactor proxy.py into actually holding state somewhere rather than just being a few free functions, and that's something I'm kind of reluctant to do, but I'll work it out :)
from pluralkit.
Closed in 25f96dd.
from pluralkit.
Related Issues (20)
- Better replies
- Add support for silent messages. HOT 3
- `text --c` is not a valid proxy tag HOT 1
- Dozer logclean errors when Dozer sends a message that isn't a log
- Nitro emoji from other servers don't work. HOT 4
- 403 code given for all avatars & no avatars showing up HOT 3
- Call issues HOT 1
- Avatar issues HOT 1
- add support for "Send Messages in Threads" permission HOT 1
- enable PluralKit proxying in threads for channels on proxy blacklist
- [Feature] Add webhook API to notify services of switches HOT 2
- whyis it offline😰 HOT 1
- Its working at least but... HOT 1
- Nitro messages longer than 2000 characters are dropped. HOT 7
- User-installed App Support to allow command use in DMs? HOT 2
- Blocking Pluralkit Members HOT 3
- Would it be possible to add a function to import a Simply plural account? HOT 1
- Rotating Avatars HOT 1
- Profile pictures not loading properly over the course of a week HOT 2
- Escaping formatting syntax from usernames
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 pluralkit.