Discord bot for taking community polls
- packages - base directory for shareable packages
- idl-ts - generated from
projects/idl
build
- idl-ts - generated from
- projects
- discord-bot - pollbot Discord bot code. Handles commands, interactions, persistence, etc.
- idl - (interface description language) contains protobuf definitions for domain models and messages used in network requests/responses, document storage, and business logic.
There are some handy scripts (which may or may not work in your environment).
Build IDL
cd projects/idl
make init # This should install Buf. If this fails, install Buf and protobuf.
make build # This should build `packages/idl-ts`. This is a dependency for `projects/discord-bot`
You will need to set up a new Firestore project and enable Firestore. Then set up your development environment using instructions found in projects/discord-bot
.
You will need to create a new Discord application and set up a new bot user for it. Ensure that the bot invite has all permissions you need for pollbot (application commands, read message history, etc).
Discord and Firestore require some environment variables to be created for pollbot to function. These can be seen in projects/discord-bot/src/settings.ts
. If documentation in projects/discord-bot
is not sufficient, please reach out to my discord server or leave an issue on this repo to have documentation improved.