Go to file
2020-03-16 18:21:04 -04:00
__mocks__ add test suite 2020-03-15 23:30:00 -04:00
dist bot test suite and refactoring 2020-03-16 14:42:22 -04:00
src add test suite 2020-03-15 23:30:00 -04:00
transcripts changes from glitch 2020-03-15 14:10:59 -04:00
.babelrc refactor into a bot class 2020-02-23 13:58:09 -05:00
.env.sample use dotenv instead of config, sync with changes from glitch 2020-03-02 17:52:25 -05:00
.gitignore use dotenv instead of config, sync with changes from glitch 2020-03-02 17:52:25 -05:00
package.json bot test suite and refactoring 2020-03-16 14:42:22 -04:00
README.md Update README.md 2020-03-16 18:21:04 -04:00
webpack.config.js bot proof of concept 2020-02-22 19:30:27 -05:00
yarn.lock bot test suite and refactoring 2020-03-16 14:42:22 -04:00

OCRCC Bot

A simple Matrix bot that handles inviting, uninviting, and notifying Riot users on the recieving end of the OCRCC chatbox

A demo of this bot is hosted on Glitch: https://glitch.com/edit/#!/nomadic-labs-ocrcc-bot You can remix it and continue developing directly on Glitch. All you need to do is add an .env file with the following variables:

MATRIX_SERVER_URL="https://matrix.org"
BOT_DISPLAY_NAME="Example Bot"
BOT_USERNAME="example-bot"
BOT_PASSWORD="password"
BOT_USERID="@example-bot:matrix.org"
FACILITATOR_ROOM_ID="!example:matrix.org"
CHAT_OFFLINE_MESSAGE="There is no-one currently available to chat."
CAPTURE_TRANSCRIPTS=true

Local development

If you prefer to develop locally instead of on Glitch:

Clone the project

git clone https://github.com/nomadic-labs/ocrcc-bot.git

Install dependencies

cd ocrcc-bot
yarn

Copy the sample .env file and add in your own variables

cp .env.sample .env

Start the local server

yarn develop

Run the tests

yarn test

Production build

yarn build