Match the imports as the template base
All checks were successful
Build and push container image / build (push) Successful in 6m40s
All checks were successful
Build and push container image / build (push) Successful in 6m40s
This commit is contained in:
parent
929ef0467a
commit
f6bb3243d3
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -800,7 +800,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "kon"
|
||||
version = "0.1.9"
|
||||
version = "0.1.10"
|
||||
dependencies = [
|
||||
"cargo_toml",
|
||||
"gamedig",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "kon"
|
||||
version = "0.1.9"
|
||||
version = "0.1.10"
|
||||
rust-version = "1.74"
|
||||
edition = "2021"
|
||||
|
||||
|
14
src/main.rs
14
src/main.rs
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user