Skip to content

Commit

Permalink
V0.3.14 (#336)
Browse files Browse the repository at this point in the history
- Big refactor, moving a lot of the code into modules.
- crack-testing module for testing and developing new features without affecting the main bot.
- crack-types module for shared types. New modules can depend on this to avoid circular dependencies.
- Auto complete for /play brings up actual youtube search results.
  • Loading branch information
cycle-five authored Nov 9, 2024
1 parent 4206c0c commit c167d40
Show file tree
Hide file tree
Showing 70 changed files with 3,191 additions and 1,197 deletions.
4 changes: 2 additions & 2 deletions .build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tasks:
cargo install cargo-tarpaulin
- install-yt-dlp: |
export POSTGRES_PASSWORD=$(cat ~/PG_PASSWORD)
sudo curl -sSL --output /usr/local/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/download/2024.04.09/yt-dlp_linux
sudo curl -sSL --output /usr/local/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
sudo chmod +x /usr/local/bin/yt-dlp
- fmt: |
Expand All @@ -49,7 +49,7 @@ tasks:
export DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432/postgres
export SQLX_OFFLINE=true
cd cracktunes
cargo clippy --all -- -D clippy::all -D warnings
cargo clippy --all -- -D clippy::all -D warnings --allow clippy::needless_return
- initdb: |
export POSTGRES_PASSWORD=$(cat ~/PG_PASSWORD)
sudo -u postgres psql -c "ALTER USER postgres PASSWORD '${POSTGRES_PASSWORD}';"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: "Install yt-dlp"
run: |
curl -sSL --output /usr/local/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/download/2024.04.09/yt-dlp_linux
curl -sSL --output /usr/local/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
chmod +x /usr/local/bin/yt-dlp
shell: bash

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: "Update"
run: |
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
- name: "Install Rust"
run: |
rustup toolchain install ${{ matrix.rust-version }} --profile minimal --no-self-update
# rustup toolchain install nightly --profile minimal --no-self-update
rustup component add rustfmt clippy --toolchain ${{ matrix.rust-version }}
rustup default ${{ matrix.rust-version }}
rustup update
rustup component add rustfmt clippy --toolchain ${{ matrix.rust-version }}
# rustup component add rustfmt clippy --toolchain nightly
shell: bash
-
uses: ikalnytskyi/action-setup-postgres@v4
Expand Down Expand Up @@ -66,4 +70,4 @@ jobs:
PG_PASSWORD: mysecretpassword
VIRUSTOTAL_API_KEY: ${{secrets.VIRUSTOTAL_API_KEY}}
if: success() || failure()
run: cargo clippy --all -- -D clippy::all -D warnings
run: cargo clippy --all -- -D clippy::all -D warnings --allow clippy::needless_return
7 changes: 3 additions & 4 deletions .replit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run = "cargo build"
hidden = ["target"]
entrypoint = "src/main.rs"
modules = ["rust-stable:v4-20240117-0bd73cd"]
modules = ["rust-nightly:v4"]

[packager]
language = "rust"
Expand All @@ -10,8 +10,7 @@ language = "rust"
packageSearch = true

[nix]
channel = "stable-22_11"
#channel = "stable"
channel = "stable-24_05"

[gitHubImport]
requiredFiles = [".replit", "replit.nix"]
Expand All @@ -22,7 +21,7 @@ requiredFiles = [".replit", "replit.nix"]
pattern = "**/*.rs"

[languages.rust.languageServer]
start = "rust-analyzer"
start = "rust-nightly-analyzer"

[deployment]
run = ["sh", "-c", "cargo run"]
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
"./crack-bf/Cargo.toml",
"./crack-gpt/Cargo.toml",
"./crack-osint/Cargo.toml",
"./crack-voting/Cargo.toml"
"./crack-voting/Cargo.toml",
"./crack-types/Cargo.toml",
"./crack-testing/Cargo.toml"
],
"sqltools.useNodeRuntime": null,
"rust-analyzer.checkOnSave": false,
"rust-analyzer.checkOnSave": true,
"gitdoc.enabled": false,
"editor.fontFamily": "0xProto Nerd Font Mono",
"keyboard.dispatch": "keyCode",
Expand Down
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
- [ ] Codebase architecture documentation.
- [ ] Support discordbotlist.com (voting service).

## v0.3.14 (2024/11/05)
- [x] Big refactor, moving a lot of the code into modules.
- [x] crack-testing module for testing and developing new features without
affecting the main bot.
- [x] crack-types module for shared types. New modules can depend on this
to avoid circular dependencies.
- [x] Auto complete for `/play` brings up actual youtube search results.

## v0.3.13 (2024/09/19)
- Dependency updates

## v0.3.12 (2024/09/12)

- [x] `/movesong` command
Expand All @@ -28,7 +39,14 @@
- [x] performance improvements.
- [x] All milestones recorded as GitHub issues.
- [x] Add help option to all commands.
- [x] Added back in internal playlist support. - [x] `/playlist create <playlistname>` Creates a playlist with the given name - [x] `/playlist delete <playlistname>` Deletes a playlist with the given name - [x] `/playlist addto <playlistname>` Adds the currently playing song to <playlistname> - [x] `/playlist list` List your playlists - [x] `/playlist get <playlistname>` displays the contents of <playlistname> - [x] `/playlist pplay <playlistname>` queues the given playlist on the bot - [x] `/playlist loadspotify <spotifyurl> <playlistname>` loads a spotify playlist into a Crack Tunes playlist.
- [x] Added back in internal playlist support.
- [x] `/playlist create <playlistname>` Creates a playlist with the given name
- [x] `/playlist delete <playlistname>` Deletes a playlist with the given name
- [x] `/playlist addto <playlistname>` Adds the currently playing song to <playlistname>
- [x] `/playlist list` List your playlists
- [x] `/playlist get <playlistname>` displays the contents of <playlistname>
- [x] `/playlist pplay <playlistname>` queues the given playlist on the bot
- [x] `/playlist loadspotify <spotifyurl> <playlistname>` loads a spotify playlist into a Crack Tunes playlist.

## ~~v0.3.9~~

Expand Down
Loading

0 comments on commit c167d40

Please sign in to comment.