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.git
or manually download and extract the repository. -
Run
npm install
-
Create a
.env
file and write the following contents:
TOKEN= #Your Discord Bot Token
NAME= #osu username (IRC)
IRC= #IRC Password
In 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