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]]
name = "kon"
version = "0.1.9"
version = "0.1.10"
dependencies = [
"cargo_toml",
"gamedig",

View File

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

View File

@ -2,10 +2,14 @@ mod commands;
use std::env::var;
use poise::serenity_prelude::{self as serenity};
use serenity::builder::{
CreateMessage,
CreateEmbed,
CreateEmbedAuthor
use serenity::{
builder::{
CreateMessage,
CreateEmbed,
CreateEmbedAuthor
},
ClientBuilder,
GatewayIntents
};
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)))
.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 {
println!("Client error: {:?}", why);