Skip to content

qntnt/pollbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pollbot

Discord bot for taking community polls

Structure

  • packages - base directory for shareable packages
    • idl-ts - generated from projects/idl build
  • 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.

How to build

There are some handy scripts (which may or may not work in your environment).

Tools

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`

Storage Setup

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.

Discord Setup

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).

Environment Setup

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.

About

Discord bot for taking community polls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages