Comments (7)
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.
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.
dont know if this works but there is a disnake ext ipc from Hunter
https://github.com/Disnake-Extensions/disnake-ext-ipc
from disnake.
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.
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.
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.
@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)
- Another blind spot of command sync algorithm
- Expose enums off relevant classes' namespace HOT 4
- bug in threads.py HOT 1
- Add a system message return to `disnake.Message.pin()` HOT 2
- Command preparation and sync fails when bot is started on an unmanaged event loop HOT 4
- Add support for more docstrings styles
- Pycharm cannot determine type when using `@utils.cached_slot_property` HOT 3
- Typed IDs. HOT 10
- Add `on_raw_presence_update` event
- Inconsistency with type hinting `create_x_channel` methods and underlying `_create_channel` method
- Add the ability to change the description of the bot HOT 1
- implement new Poll discord API feature
- The load_extensions function is not working correctly HOT 1
- Object doesn't have name and type attributes HOT 1
- `@commands.check` and `@error` method typings/docs are not entirely accurate
- Ignoring i18n files starting with . HOT 2
- Local embed icons HOT 2
- implement message forwards feature
- yarl in oauth2 url generator
- Missing class in documentation may lead to confusion
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 disnake.