Widget (in the form of an HTML page) for Open Broadcaster and other streaming software.
Briefly, it is done like this:
- https://discordapp.com/developers/applications/ Create an application
- Go to the Bot tab in your application, create a bot. The bot has zero permissions, it doesn't need anything other than reading messages and a list of channels.
- Invite the bot to the servers where it should work. You can invite the bot only to the server on which you have administrative privileges. Therefore, it is better to make the bot public (public bot),
dotnet NKDiscordChatWidget.dll -p 5050 -t "LONG_DISCORD_BOT_TOKEN"
Open the link http://127.0.0.1:5050/ in a browser (the port number is from the command line). Modify settings and pick the desired channel, copy the link to it into the "browser" plugin in your OBS.
Your docker-compose.yml
:
version: "3"
services:
widget:
build: .
ports:
- "5051:5050"
environment:
- DISCORD_BOT_TOKEN=NTXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXBI
Then:
docker-compose up -d
Licensed under the Apache License.