- Copy your Google API credentials into credentials folder.
- Add
GOOGLE_APPLICATION_CREDENTIALS="credentials/your-credentials.json"
to.env
file. - Create database and user in mongodb
cp config.template.json config.json
- Configure your guild (discord server) id, client (bot) id, Discord API token, DB Connection URL and DB Name in config.json.
npm install
npm run register-commands
npm start
npx simple-git-hooks
to set up .git/hooks
TODO: Rewrite this section
Type !help
in discord chat to get bot commands help.
You can associate channels and games using bot commands. When bot detects a player starting a game when he is not in the correct channel, bot will join that channel and ask all players in that channel if they want to get moved to correct channel.
Also you can create a message which players can use to assign roles to themselves. When player places emote on the message he gets the role associated with that emote. Currently you need to manually create collection ReactionMessages with a single document with a single field id: your_message_id
.
You can find very detailed guide on how to write your own bot with voice recoginition on https://refruity.xyz/writing-discord-bot/