Working on database for messages

This commit is contained in:
2023-07-06 21:07:54 -04:00
parent a2441c6d9e
commit 9a8587e4b8
11 changed files with 132 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ Example Invite:
```
https://discord.com/api/oauth2/authorize?client_id=<CLIENT_ID>&permissions=40671259392832&scope=bot%20applications.commands
```
- The CLIENT_ID can be found in the General Information tab on the Discord Developer Portal for your application, under `Application ID`
The CLIENT_ID can be found in the General Information tab on the Discord Developer Portal for your application, under `Application ID`
1. Copy `.env.TEMPLATE` to `.env` and fill out the fields
2. Build the [Docker](https://www.docker.com/) application with `make build`
@@ -27,16 +27,22 @@ https://discord.com/api/oauth2/authorize?client_id=<CLIENT_ID>&permissions=40671
## Contributing
[Rust](https://www.rust-lang.org/) must be installed to run locally. See [serenity-rs/serenity](https://github.com/serenity-rs/serenity) for more information about Rust Discord API Library.
Furthermore, the following packages must be installed for [serenity-rs/songbird](https://github.com/serenity-rs/songbird). View the repository for additional installation and setup information on other operating systems.
The following packages must be installed for [serenity-rs/songbird](https://github.com/serenity-rs/songbird). View the repository for additional installation and setup information on other operating systems.
```
sudo apt install libopus-dev
sudo apt install ffmpeg
sudo apt apt install youtube-dl
```
- Potentially requires [yt-dlp](https://github.com/yt-dlp/yt-dlp#installation) and [yt-dlp FFmpeg Static Auto-Builds](https://github.com/yt-dlp/FFmpeg-Builds).
Potentially requires [yt-dlp](https://github.com/yt-dlp/yt-dlp#installation) and [yt-dlp FFmpeg Static Auto-Builds](https://github.com/yt-dlp/FFmpeg-Builds).
The following packages must be installed for [PostgreSQL]().
```
sudo apt install libpq5
sudo apt install libpq-dev
```
Begin the application with `cargo run`
Begin the application with `cargo run` (note the database must still be running)
- `docker compose up -d db`
The application can also be tested from within a Docker container:
```