-
my goal is to implement scheduled messages, while the contents of the message need to be taken from a file on the system, for this I already have a bash script that, while my computer is not busy, inserts text into the input field and presses enter
my idea is to use this library to open a server that will proxy requests from my script, how possible is this?(I also have to say that I have no experience with js or electon) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is out of topic of the repo. Anyway, I do not think it is possible. The Discord client is running Electron which is basically a Chromium browser. The Discord client is thus a sandbox as you can only access the UI part of the browser. You cannot interact with the file system or listen to ports in that context. This lib is mostly made for quick scripts to run very simple automations. If you which to do more than this, I suggest finding another library that would note live in the Discord client, and that accepts self bot usage, to achieve what you want. |
Beta Was this translation helpful? Give feedback.
-
Have you tried using Puppeteer to inject a script? You can have a headless chrome window login to Discord, inject the API and then run any js script that you could use to automate your tasks.
and then just
This way you can have the script running on a VPS or even your own computer, and the window doesn't even need to be open since it's running on headless Chromium. You could have it setup to run multiple scripts at once if you'd like too. |
Beta Was this translation helpful? Give feedback.
Have you tried using Puppeteer to inject a script? You can have a headless chrome window login to Discord, inject the API and then run any js script that you could use to automate your tasks.
and then just
This way you can have the script running on a VPS or even your own computer, and the window doesn't even need to be open since it's running on headless Chromium. You could have it setup to run mult…