Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshuanianji/treehouse-bot
A discord bot for fun
https://github.com/joshuanianji/treehouse-bot
discord docker
Last synced: 1 day ago
JSON representation
A discord bot for fun
- Host: GitHub
- URL: https://github.com/joshuanianji/treehouse-bot
- Owner: joshuanianji
- Created: 2020-11-03T06:17:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T19:48:20.000Z (11 months ago)
- Last Synced: 2024-04-17T05:19:03.491Z (10 months ago)
- Topics: discord, docker
- Language: TypeScript
- Homepage:
- Size: 14.2 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Treehouse Bot
A Discord bot with some other apps. Scaffolded from Turborepo Starter.
- **apps/bot**: The main discord bot, written with Discord.js. Hosted on Digital Ocean via Docker.
- **apps/server** The server, written with Express. Hosted on Digital Ocean via Docker.
- **apps/web**: The web app, built with Next.JS and hosted on [Netlify](https://www.netlify.com/).
- **packages/\***: Place to store shared code between my apps.## Prerequisites
Make sure you have the following installed on your system:
- [Docker](https://www.docker.com/community-edition)
- [Docker Compose](https://docs.docker.com/compose/install/)
- [Node v18 or higher](https://nodejs.org/en/download/), or [nvm](https://github.com/nvm-sh/nvm) (Discord.js 13 requires Node v16.6+)## Starter
This runs the server, bot and web all in one go on your computer.
```bash
nvm use
yarn
yarn dev
```## Run with Docker
To emulate production, run the Server and Bot in Dockerfiles.
```bash
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
```## Run Production with Docker
For actual production servers, use downloaded images from GHCR (Github Container Registry).
```bash
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
```## View Logs of running Containers
```bash
docker-compose -f docker-compose.yml -f docker-compose.prod.yml logs -ft
```