Skip to content

Commit

Permalink
Merge pull request #481 from tktcorporation/feature/479/upgrade-songb…
Browse files Browse the repository at this point in the history
…ird-2

`songbird`, `serenity` のアップグレード. 多数の機能の破壊的変更
  • Loading branch information
tktcorporation authored Sep 15, 2024
2 parents f0c5b93 + 49d7d29 commit 60eb055
Show file tree
Hide file tree
Showing 66 changed files with 2,054 additions and 1,777 deletions.
2,235 changes: 1,730 additions & 505 deletions Cargo.lock

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "discord-tts-bot"
version = "1.5.0"
version = "2.0.0"
authors = ["tktcorporation"]
edition = "2021"
license = "MIT"
Expand All @@ -27,13 +27,21 @@ mockall = "0.12.1"
mockall_double = "0.3.0"
serde = "1.0.204"

[dependencies.reqwest]
version = "0.11"
features = ["stream"]

[dependencies.songbird]
version = "0.3.2"
features = ["builtin-queue", "yt-dlp"]
version = "0.4.1"
features = ["builtin-queue"]

[dependencies.symphonia]
version = "0.5.2"
features = ["aac", "mp3", "isomp4", "alac"]

[dependencies.serenity]
version = "0.11.7"
features = ["cache", "standard_framework", "voice", "rustls_backend"]
version = "0.12.2"
features = ["client", "gateway", "cache", "standard_framework", "voice", "rustls_backend", "http"]

[dependencies.tokio]
version = "1.36.0"
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.7"
services:
app:
build:
Expand Down
8 changes: 2 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.74.0-slim-bullseye AS dev-env
FROM rust:1.81.0-slim-bullseye AS dev-env

RUN apt-get update && \
apt-get install -y \
Expand All @@ -10,13 +10,10 @@ RUN apt-get update && \
automake \
libtool \
m4 \
ffmpeg \
curl \
python3 \
git

RUN curl https://raw.githubusercontent.com/nektos/act/master/install.sh | bash

# install yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp && \
chmod a+rx /usr/bin/yt-dlp
Expand All @@ -39,7 +36,7 @@ RUN cargo build --release --features "tts"

CMD [ "/bin/sh", "-c", "cargo run" ]

FROM debian:bullseye-20231030-slim
FROM debian:bullseye-20240904-slim

RUN apt-get update && \
apt-get install -y \
Expand All @@ -51,7 +48,6 @@ RUN apt-get update && \
automake \
libtool \
m4 \
ffmpeg \
curl \
python3 \
&& apt-get -y clean \
Expand Down
8 changes: 2 additions & 6 deletions docker/Dockerfile.music
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.74.0-slim-bullseye AS dev-env
FROM rust:1.81.0-slim-bullseye AS dev-env

RUN apt-get update && \
apt-get install -y \
Expand All @@ -10,13 +10,10 @@ RUN apt-get update && \
automake \
libtool \
m4 \
ffmpeg \
curl \
python3 \
git

RUN curl https://raw.githubusercontent.com/nektos/act/master/install.sh | bash

# install yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp && \
chmod a+rx /usr/bin/yt-dlp
Expand All @@ -39,7 +36,7 @@ RUN cargo build --release --no-default-features --features "music"

CMD [ "/bin/sh", "-c", "cargo run" ]

FROM debian:bullseye-20231030-slim
FROM debian:bullseye-20240904-slim

RUN apt-get update && \
apt-get install -y \
Expand All @@ -51,7 +48,6 @@ RUN apt-get update && \
automake \
libtool \
m4 \
ffmpeg \
curl \
python3 \
&& apt-get -y clean \
Expand Down
1 change: 0 additions & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod usecase;
pub use usecase::message_commands;

pub use usecase::slash_commands;
56 changes: 0 additions & 56 deletions src/commands/usecase/message_commands/bgm.rs

This file was deleted.

24 changes: 0 additions & 24 deletions src/commands/usecase/message_commands/clear.rs

This file was deleted.

22 changes: 0 additions & 22 deletions src/commands/usecase/message_commands/deafen.rs

This file was deleted.

71 changes: 0 additions & 71 deletions src/commands/usecase/message_commands/help.rs

This file was deleted.

18 changes: 0 additions & 18 deletions src/commands/usecase/message_commands/invite.rs

This file was deleted.

32 changes: 0 additions & 32 deletions src/commands/usecase/message_commands/join.rs

This file was deleted.

17 changes: 0 additions & 17 deletions src/commands/usecase/message_commands/leave.rs

This file was deleted.

33 changes: 0 additions & 33 deletions src/commands/usecase/message_commands/mod.rs

This file was deleted.

Loading

0 comments on commit 60eb055

Please sign in to comment.