From 6f100adf80f7c7f22d76c1c08b2431e20d892d84 Mon Sep 17 00:00:00 2001 From: gallant Date: Sat, 6 Aug 2022 00:30:56 +0000 Subject: [PATCH] setup --- Cargo.toml | 2 +- src/commands/pkg.rs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/commands/pkg.rs diff --git a/Cargo.toml b/Cargo.toml index a966f63..35852fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal"] } anyhow = "1.0" tracing = "0.1" tracing-subscriber = "0.3" -reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] } +reqwest = { version = "0.11", default-features = false, features = ["rustls-tls","json"] } serde_json = "1.0" fancy-regex = "0.10" rspotify = { version = "0.11", default-features = false, features = ["client-reqwest", "reqwest-rustls-tls"] } diff --git a/src/commands/pkg.rs b/src/commands/pkg.rs new file mode 100644 index 0000000..f5f459d --- /dev/null +++ b/src/commands/pkg.rs @@ -0,0 +1,14 @@ +use crate::bot::{Command, Context}; +use async_trait::async_trait; + +#[derive(Default)] +pub struct Pkg { + pkg_name: String, +} + +#[async_trait] +impl Command for Pkg { + async fn execute(&mut self, msg: Context<'_>) -> anyhow::Result { + + } +} \ No newline at end of file