Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.4 KB

README.md

File metadata and controls

45 lines (29 loc) · 2.4 KB

Discord Discord

Logo Disc Golf Bot

Disc Golf Bot is a Discord Bot to help assist and inspire Disc golf communities. Disc Golf

Suggestions & Bug Reports

To report a bug, click here.

To suggest a new feature, click here

Contributing

Anyone is free to create PR's with improvements and additions to Disc Golf Bot.

Please lint your code with the projects' ESLint config.

Contributors are listed in this file, and given a Contributor role in the support server. If you have more questions, send me a message on discord.

Setting up the bot to run locally for contributing

To run the bot, you need the following things first: Git, NodeJS v12+, Postgres, a discord bot account

  1. Clone the repository: git clone https://github.com/oldschoolgg/oldschoolbot.git
  2. Change into the new directory: cd oldschoolbot
  3. Install the yarn dependency: npm install --global yarn
  4. Make a config file from the example: cp src/config.example.ts src/config.ts
  5. Edit this new config.ts file, input your bot token; be sure to read the comments for any additional instructions.
  6. Go to https://discord.com/developers/applications and ensure your bot has Privileged Gateway Intents > Server Members Intent enabled.
  7. Create a file called .env in your project's root directory with the content (change as necessary for your DB, this is known as a DSN): DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public
  8. Run yarn then yarn install
  9. Run npx prisma generate to generate the Prisma client files and load the DSN from #6
  10. Run npx prisma db push to create the tables on the database referenced in .env
  11. Run yarn build - then run yarn start. In the future, you can type only yarn start to start the bot.

If you have errors or issues, you can ask us for help in the developer channel in the discord server.

Contributors

Self Hosting

Self hosting is not supported.