Giter Site home page Giter Site logo

Comments (11)

RoguedBear avatar RoguedBear commented on July 28, 2024

Having multi device support would be based on these 2 assumptions first of all:

  • both devices have BetterDiscord
  • both devices have this plugin running

but based on current implementation, if you go AFK from device 1 and your status changes to idle but then come back online on device 2, the plugin on device 2 would detect that the status is idle (or whatever afk status you have set) but was not changed by plugin on device 2 so it'll leave it as it is. If you go back to device 1 then your AFK would be removed.

To have both the plugin installations synced, the data stored by plugins would need to be stored somewhere remote which both plugins can access. Like how discord stores your settings (like current status, bio etc) on their servers.

Theoretically there could be 2 ways to achieve that:

  1. either by storing plugin data on discord servers which I believe is not a possibility for BetterDiscord plugins.
  2. or by utilising some 3rd party service like Github Gists or pastebin, but as far as I know it could go against BetterDiscord's plugin policy though i may have to check on that. Even if it wasn't, then users would have to provide their Gist/pastebin URLs and authorisation tokens.

2nd option could be a limitation for me if I want to keep my plugin on BD website published and a hassle for other users, but if you have some coding experience and want to spend the time developing multi device support, then you can create a fork of this repo and create your own version of the plugin implementing the 2nd option.

I won't be implementing this feature for the time being, but if I learn in the future method 1 is possible, I would look into implementing this request.

from betterdiscordplugin-autoidleonafk.

bobbyl140 avatar bobbyl140 commented on July 28, 2024

Thank you for the detailed response. What you said makes sense, however, instead of requiring the clients to sync data, could there be an option to change from idle to online no matter what, even if the idle status didn’t originate from that client? If you still would rather not implement this I understand. Thanks!

from betterdiscordplugin-autoidleonafk.

RoguedBear avatar RoguedBear commented on July 28, 2024

i could add one option "keep track of status changes made by plugin" which when turning off would fall back to the behavior you describe.
though adding that would take time.

from betterdiscordplugin-autoidleonafk.

bobbyl140 avatar bobbyl140 commented on July 28, 2024

If I get some time today I’ll see if I can implement it. Thank you again.

from betterdiscordplugin-autoidleonafk.

RoguedBear avatar RoguedBear commented on July 28, 2024

completed in #7 & #9

from betterdiscordplugin-autoidleonafk.

jathek avatar jathek commented on July 28, 2024

FYI, just reading this: I wonder if you couldn't sync it across clients by changing the user's status message with an invisible character, like the zero-width space. If you append this to the user's status message whenever AFK is activated, then the plugin could put the user back online whenever it detects that character (and remove the invisible character), because the assumption will be that the plugin on another computer changed the user's status.

from betterdiscordplugin-autoidleonafk.

BigFlubba avatar BigFlubba commented on July 28, 2024

Would be more work but I would think the about me would be a more feasible option. One other way is how they do usrbg and try that route with alm the accounts and the plugins hook into a master like with everyone's ID's and status and data needed for it to work.

from betterdiscordplugin-autoidleonafk.

jathek avatar jathek commented on July 28, 2024

Would be more work but I would think the about me would be a more feasible option. One other way is how they do usrbg and try that route with alm the accounts and the plugins hook into a master like with everyone's ID's and status and data needed for it to work.

About Me might be better since adding a zero-width space to status message might create a blank status if none already exists. But wherever it's added, I think it's an option to sync the AFK status across computers without using a separate server.

from betterdiscordplugin-autoidleonafk.

RoguedBear avatar RoguedBear commented on July 28, 2024

I like this idea of encoding afk data in the bio/about me.
Obviously, i won't be able to implement this for the time being, but for a major release I would keep this in mind

from betterdiscordplugin-autoidleonafk.

bobbyl140 avatar bobbyl140 commented on July 28, 2024

It does sound good, but what are the chances discord either catches on, or simply disallows these kinds of characters in bios?

from betterdiscordplugin-autoidleonafk.

RoguedBear avatar RoguedBear commented on July 28, 2024

It does sound good, but what are the chances discord either catches on, or simply disallows these kinds of characters in bios?

now that you bring this up, it does remind me that I read in the BD server that certain APIs are expected to be used more, some are not, so "automating" the latter ones could have your account flagged.

Like changing your user status many times a day is okay but changing your about me/bio frequently could be sus at best.

so i guess current solution is sufficient for the time being.

from betterdiscordplugin-autoidleonafk.

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.