Match the imports as the template base
All checks were successful
Build and push container image / build (push) Successful in 6m40s

This commit is contained in:
toast 2024-01-12 13:50:38 +11:00
parent 929ef0467a
commit f6bb3243d3
3 changed files with 11 additions and 7 deletions

2
Cargo.lock generated
View File

@ -800,7 +800,7 @@ dependencies = [
[[package]] [[package]]
name = "kon" name = "kon"
version = "0.1.9" version = "0.1.10"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"gamedig", "gamedig",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "kon" name = "kon"
version = "0.1.9" version = "0.1.10"
rust-version = "1.74" rust-version = "1.74"
edition = "2021" edition = "2021"

View File

@ -2,10 +2,14 @@ mod commands;
use std::env::var; use std::env::var;
use poise::serenity_prelude::{self as serenity}; use poise::serenity_prelude::{self as serenity};
use serenity::builder::{ use serenity::{
CreateMessage, builder::{
CreateEmbed, CreateMessage,
CreateEmbedAuthor CreateEmbed,
CreateEmbedAuthor
},
ClientBuilder,
GatewayIntents
}; };
type Error = Box<dyn std::error::Error + Send + Sync>; type Error = Box<dyn std::error::Error + Send + Sync>;
@ -68,7 +72,7 @@ async fn main() {
.setup(|ctx, ready, framework| Box::pin(on_ready(ctx, ready, framework))) .setup(|ctx, ready, framework| Box::pin(on_ready(ctx, ready, framework)))
.build(); .build();
let mut client = serenity::ClientBuilder::new(token, serenity::GatewayIntents::GUILDS).framework(framework).await.expect("Error creating client"); let mut client = ClientBuilder::new(token, GatewayIntents::GUILDS).framework(framework).await.expect("Error creating client");
if let Err(why) = client.start().await { if let Err(why) = client.start().await {
println!("Client error: {:?}", why); println!("Client error: {:?}", why);