Chore: Fixup examples, bump version pre-push
Takes the chance to bring shared deps into the example workspace while we're here. Release notes, tags etc will follow in time.
This commit is contained in:
@@ -5,16 +5,11 @@ authors = ["my name <my@email.address>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] }
|
||||
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
tracing-futures = "0.2"
|
||||
reqwest = "0.11"
|
||||
|
||||
[dependencies.songbird]
|
||||
path = "../../../"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread", "signal"]
|
||||
reqwest = { workspace = true }
|
||||
serenity = { workspace = true }
|
||||
songbird = { workspace = true, default-features = true }
|
||||
symphonia = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
tracing-futures = { workspace = true }
|
||||
|
||||
@@ -33,6 +33,7 @@ use serenity::{
|
||||
macros::{command, group},
|
||||
Args,
|
||||
CommandResult,
|
||||
Configuration,
|
||||
},
|
||||
StandardFramework,
|
||||
},
|
||||
@@ -68,7 +69,7 @@ async fn main() {
|
||||
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
|
||||
|
||||
let framework = StandardFramework::new().group(&GENERAL_GROUP);
|
||||
framework.configure(|c| c.prefix("~"));
|
||||
framework.configure(Configuration::new().prefix("~"));
|
||||
|
||||
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;
|
||||
|
||||
|
||||
@@ -5,15 +5,11 @@ authors = ["my name <my@email.address>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serenity = { version = "0.12.0-rc", features = ["cache", "framework", "standard_framework", "voice", "http", "rustls_backend"] }
|
||||
symphonia = { features = ["mp3"], version = "0.5.2" }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
tracing-futures = "0.2"
|
||||
|
||||
[dependencies.songbird]
|
||||
path = "../../../"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
reqwest = { workspace = true }
|
||||
serenity = { workspace = true }
|
||||
songbird = { workspace = true, default-features = true }
|
||||
symphonia = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
tracing-futures = { workspace = true }
|
||||
|
||||
@@ -24,6 +24,7 @@ use serenity::{
|
||||
macros::{command, group},
|
||||
Args,
|
||||
CommandResult,
|
||||
Configuration,
|
||||
},
|
||||
StandardFramework,
|
||||
},
|
||||
@@ -95,7 +96,7 @@ async fn main() {
|
||||
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
|
||||
|
||||
let framework = StandardFramework::new().group(&GENERAL_GROUP);
|
||||
framework.configure(|c| c.prefix("~"));
|
||||
framework.configure(Configuration::new().prefix("~"));
|
||||
|
||||
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;
|
||||
|
||||
|
||||
@@ -5,17 +5,11 @@ authors = ["my name <my@email.address>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
reqwest = "0.11"
|
||||
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] }
|
||||
symphonia = { features = ["aac", "mp3", "isomp4", "alac"], version = "0.5.2" }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
tracing-futures = "0.2"
|
||||
|
||||
[dependencies.songbird]
|
||||
features = ["builtin-queue"]
|
||||
path = "../../../"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread", "signal"]
|
||||
reqwest = { workspace = true }
|
||||
serenity = { workspace = true }
|
||||
songbird = { workspace = true, default-features = true, features = ["builtin-queue"] }
|
||||
symphonia = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
tracing-futures = { workspace = true }
|
||||
|
||||
@@ -28,6 +28,7 @@ use serenity::{
|
||||
macros::{command, group},
|
||||
Args,
|
||||
CommandResult,
|
||||
Configuration,
|
||||
},
|
||||
StandardFramework,
|
||||
},
|
||||
@@ -75,7 +76,7 @@ async fn main() {
|
||||
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
|
||||
|
||||
let framework = StandardFramework::new().group(&GENERAL_GROUP);
|
||||
framework.configure(|c| c.prefix("~"));
|
||||
framework.configure(Configuration::new().prefix("~"));
|
||||
|
||||
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;
|
||||
|
||||
|
||||
@@ -6,15 +6,10 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
dashmap = "5"
|
||||
serenity = { version = "0.12.0-rc", features = ["client", "standard_framework", "voice", "rustls_backend"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
tracing-futures = "0.2"
|
||||
|
||||
[dependencies.songbird]
|
||||
features = ["receive"]
|
||||
path = "../../../"
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "1.0"
|
||||
features = ["macros", "rt-multi-thread"]
|
||||
serenity = { workspace = true }
|
||||
songbird = { workspace = true, default-features = true, features = ["receive"] }
|
||||
symphonia = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
tracing-futures = { workspace = true }
|
||||
|
||||
@@ -24,6 +24,7 @@ use serenity::{
|
||||
macros::{command, group},
|
||||
Args,
|
||||
CommandResult,
|
||||
Configuration,
|
||||
},
|
||||
StandardFramework,
|
||||
},
|
||||
@@ -209,7 +210,7 @@ async fn main() {
|
||||
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
|
||||
|
||||
let framework = StandardFramework::new().group(&GENERAL_GROUP);
|
||||
framework.configure(|c| c.prefix("~"));
|
||||
framework.configure(Configuration::new().prefix("~"));
|
||||
|
||||
let intents = GatewayIntents::non_privileged() | GatewayIntents::MESSAGE_CONTENT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user