Skip to content

Commit

Permalink
cargo update
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Dec 11, 2022
1 parent f6b9c5a commit 291568c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
tokio = { version = "1", features = ["full"] }
ricq = "0.1"
ricq = { version = "0.1", git = "https://github.com/lz1998/ricq" }
futures = "0.3"
async-trait = "0.1"
bytes = "1.1.0"
Expand All @@ -34,7 +34,7 @@ chrono = "0.4"
xml-rs = "0.8"
async-recursion = "1.0.0"
md5 = "0.7"
ricq-core = "0.1"
ricq-core = { version = "0.1", git = "https://github.com/lz1998/ricq" }

[build-dependencies]
#lust-build = { version = "*", registry = "crates-byted" }
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"
11 changes: 7 additions & 4 deletions src/api_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::Arc;
use std::time::Duration;

use ricq::structs::GroupMemberPermission;
use ricq_core::command::oidb_svc::music::{MusicShare, MusicType};
use ricq_core::structs::{MusicShare, MusicVersion};

use crate::bot::Bot;
use crate::error::{RCError, RCResult};
Expand Down Expand Up @@ -495,9 +495,12 @@ pub async fn handle_send_music(bot: &Arc<Bot>, req: SendMusicReq) -> RCResult<Se
music_url: req.music_url,
};
let music_type = match req.r#type.as_str() {
"qq" => MusicType::QQ,
"cloud" => MusicType::Cloud,
_ => MusicType::QQ,
"qq" => MusicVersion::QQ,
"cloud" => MusicVersion::NETEASE,
"migu" => MusicVersion::MIGU,
"kugou" => MusicVersion::KUGOU,
"kuwo" => MusicVersion::KUWO,
_ => MusicVersion::QQ,
};
if req.group_id != 0 {
bot.client
Expand Down

0 comments on commit 291568c

Please sign in to comment.