Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marvnc/discord-websocket-text-inserter
Userscript to send text from a websocket to a Discord chat.
https://github.com/marvnc/discord-websocket-text-inserter
discord textractor userscript websocket
Last synced: about 2 months ago
JSON representation
Userscript to send text from a websocket to a Discord chat.
- Host: GitHub
- URL: https://github.com/marvnc/discord-websocket-text-inserter
- Owner: MarvNC
- Created: 2023-12-30T22:53:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-20T03:14:46.000Z (6 months ago)
- Last Synced: 2024-10-26T20:40:40.961Z (3 months ago)
- Topics: discord, textractor, userscript, websocket
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Discord Websocket Text Inserter
This is a simple userscript that allows you to receive text from a websocket and
send it to the current Discord channel. This is useful for group reading VNs or
watching anime with friends where everyone can look up the words in real time by
using [Yomitan](https://github.com/themoeway/yomitan) through a browser.## Usage
- Get [textractor_websocket](https://github.com/kuroahna/textractor_websocket)
for VNs or [mpv_websocket](https://github.com/kuroahna/mpv_websocket) for
anime and set it up.
- Install [Violentmonkey](https://violentmonkey.github.io/) for your browser.
- Install the script by
**[clicking here](https://github.com/MarvNC/discord-websocket-text-inserter/raw/main/discord-websocket-inserter.user.js)**.
- Get your Discord token by following
[this guide](https://gist.github.com/MarvNC/e601f3603df22f36ebd3102c501116c6).
- Go to the Discord channel where you want to send the text in your browser.
- Use the script through the userscript manager's popup menu as shown below.![image](https://github.com/MarvNC/discord-websocket-text-inserter/assets/17340496/57d6b9a3-53e3-400d-bc46-224b273dbdfe)
> [!WARNING]
> This interacts with the Discord API and could be considered as
> usage of a third party client/selfbotting. Use an alt account if this concerns
> you.## Notes
- There is a ratelimit built in to lessen the likelihood of hitting the Discord
message ratelimit. Because of this, you may notice a delay between the text
being sent to the websocket and it appearing in Discord.
- Due to the content security policy, there is no way to use a websocket that is
not on `127.0.0.1`.
- The recommended websocket extensions use the port `6677` by default, but if
your websocket is on a different port, you can change it through the menu.