Code Monkey home page Code Monkey logo

Comments (7)

thesadru avatar thesadru commented on July 23, 2024

May I know what the use of IPC is here? I'm pretty sure that since your bot object is a singleton you can easily pass it into your app. If you use a decent web framework it should be able to make it easy to access that object from anywhere and in turn completely eliminate the need for IPC.

from disnake.

Pandabweer avatar Pandabweer commented on July 23, 2024

May I know what the use of IPC is here? I'm pretty sure that since your bot object is a singleton you can easily pass it into your app. If you use a decent web framework it should be able to make it easy to access that object from anywhere and in turn completely eliminate the need for IPC.

Thanks for the quick reply!

The use, as stated inside the request is to interact with a webserver. While could do that, that wouldn't be the ideal situation since you need to authenticate it user by user and not use the bot object.

This would not only ratelimit the bot very quick since if it is a big bot user could make a lot of requests but it would also only be able to be used to show data, rather than it being a dashboard to interact with.

from disnake.

Cryptox1337 avatar Cryptox1337 commented on July 23, 2024

dont know if this works but there is a disnake ext ipc from Hunter

https://github.com/Disnake-Extensions/disnake-ext-ipc

from disnake.

Pandabweer avatar Pandabweer commented on July 23, 2024

If we would add it to Disnake it would be more encouraged to maintain and it would also be better documented. Altough, i know Hunter but if we implement that it would still need to be serverely debugged.

from disnake.

thesadru avatar thesadru commented on July 23, 2024

As far as I know, all the library you linked does is abstract the underlying WebSockets. Doesn't seem like something we should have builtin. I have no problem supporting some sort of serialization using the pre-existing to_dict methods but just simple IPC is rarely needed. Since the disnake community has created extensions I don't think there's any use in putting it in the library itself.

from disnake.

Pandabweer avatar Pandabweer commented on July 23, 2024

As far as I know, all the library you linked does is abstract the underlying WebSockets. Doesn't seem like something we should have builtin. I have no problem supporting some sort of serialization using the pre-existing to_dict methods but just simple IPC is rarely needed. Since the disnake community has created extensions I don't think there's any use in putting it in a library itself.

Okay, well it was just a request but thanks for giving it a thought.

from disnake.

jgayfer avatar jgayfer commented on July 23, 2024

@Pandabweer For my IPC I've implemented my own with a message broker. I like the idea on theory of IPC, but even discord-ext-ipc was half baked at best. I don't think the lib should take care of IPC necessarily.

from disnake.

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.