Links the Discord chat and the Twitch chat together.
Hi I'm ollprogram, the author of this project. Thanks for using it. Feel free to report any bugs or typo. I'll try to fix them. Since english isn't my main language, feel free to correct me if I made any mistake in this documentation.
Find information about the licence used for this project here.
Familizarize yourself with the licence before using my project. It gives information about how you can use it.
With this application you will be able to link your Twitch chat with a Discord text channel in a guild.
When someone will send something on a specified channel on Discord, the same message will be send to a specified Twitch chat, and reversly.
In this project, I'm often refering to a "Bridge". But, what does a "Bridge" represent in this project?
A "Bridge" is an object which transfers messages between two destinations. In our case destinations are Discord and Twitch.
For this project I'm using three APIs :
-
Emoji-Java (API to manipulate emojis codes)
You can see the Maven pom.xml here.
You can download the runnable jar file here.
There are some procedures before launching the program :
-
You need a Discord account and a Discord server (guild).
-
Register a new bot on the Discord Developer Portal (I recommend you to watch a tutorial on YouTube).
You should also turn it to private mode. -
Add your bot on Discord with the Discord Permissions Calculator using your bot client ID. The Discord bot will need some permissions on your server. See the permissions needed in the screenshot below:
If you want to activate other permissions, you will have to think about consequences. For example, if you decide to activate mentions to all roles for the bot, then every person from Twitch will be able to mention all roles on Discord.
-
Create a new Twitch account for your Twitch bot. Recommended to use OAuth2 and to make your bot a moderator on the Twitch channel where you stream.
When you launch the program for the first time, you need:
- Your Discord bot token (grab it on the Discord Dev Portal).
- Your Twitch bot token (grab it here).
- A Twitch channel name (The channel where you stream).
- A Discord channel ID. You need to activate first dev mode on Discord
advanced -> developer_mode -> on. Right-click on the channel where you want your bot to listen to it, and copy the ID.
java -jar TwitchDiscordBridge-1.0-shaded.jar (cmd or terminal)
Type help or <command> help in the console. Or type !help on Discord.
!testto see if the bot works.!codeto get the source code.!bridge <argument>- Arguments :
targetthis Discord channel is now linked to the Twitch chat.openopen the bridge.closeclose the bridge.infoget information about the bridge.
!prefix <new prefix>to set a new prefix (also changes the nickname of your bot).!prefix resetto reset the prefix (reset also the nickname).
shutdownshutdowns the app without exceptions.shutdown nowshutdowns the app with exceptions.say your messagesend a message on both platforms.bridge <argument>- Arguments :
twitchTarget channel namelink the bridge to an other twitch chat.get infoget information about the bridge.openopen the bridge.closeclose the bridge.
- Allow to lock the bridge on one side. (comming very soon)
