beerchat_proxy/readme.md

57 lines
1.1 KiB
Markdown
Raw Normal View History

2019-08-08 10:22:21 +02:00
2020-01-22 20:25:08 +01:00
Beerchat proxy application
2019-08-08 10:22:21 +02:00
2020-01-22 20:25:08 +01:00
Relay for minetest-ingame / IRC and Discord
![](https://github.com/minetest-beerchat/beerchat_proxy/workflows/jshint/badge.svg)
![](https://github.com/minetest-beerchat/beerchat_proxy/workflows/docker/badge.svg)
2020-05-26 08:45:13 +02:00
![](https://github.com/minetest-beerchat/beerchat_proxy/workflows/integration-test/badge.svg)
2019-08-08 11:03:28 +02:00
## Local Testing
```
curl -X POST \
-H "Content-Type: application/json" \
-d '{"channel":"main","playername":"somedude","message":"rant about lag!"}' \
2019-10-13 20:42:59 +02:00
http://127.0.0.1:8080/
```
2019-12-10 08:12:30 +01:00
## Configuration
beerchat.js
```js
module.exports = {
2020-01-22 20:25:08 +01:00
"debug": true,
"remotes": [{
"name": "IRC",
"type": "irc",
"debug": true,
"host": "chat.freenode.net",
"username": "pandorabot_test",
"password": "my-password",
"system_channel": "main",
"channels": {
"main": "pandorabox-test"
}
},{
"name": "Discord",
"type": "discord",
"debug": true,
"token": "the-discord-token",
"system_channel": "main",
"channels": {
"main": "test"
}
}]
};
2020-01-22 20:26:07 +01:00
```
2020-01-22 20:25:08 +01:00
2020-01-22 20:26:07 +01:00
## Starting
```
npm install
npm start
2019-12-10 08:12:30 +01:00
```