Fetch messages from osu!Bancho Chat and send it to Discord channel
- Node.js >=16.6.0 (with npm)
-
Run
git clone https://github.com/thanhgaming5550/osu-chat-discord.gitor manually download and extract the repository. -
Run
npm install -
Create a
.envfile and write the following contents:
TOKEN= #Your Discord Bot Token
NAME= #osu username (IRC)
IRC= #IRC PasswordIn order to obtain IRC keys, please visit this website
- In
config/channel.json, configure as follows:
{
"channel": {
"enabled": true, #Look for messages on channels
"channels": { #Send to what Discord Channel
"#name_of_Osu_channel": ["DiscordChannelID1", "DiscordChannelID2"],
...
}
},
"pm": {
"enabled": true, #Look for PM (of those who connect via IRC)
"channels": ["DiscordChannelID3", "DiscordChannelID4",...], #Send to what Discord Channel
...
}
}
- Run
node index.js
You can customizate the output in config/language.json