Cargo Format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use serenity::framework::standard::macros::{group};
|
||||
use serenity::framework::standard::macros::group;
|
||||
pub mod ping;
|
||||
use ping::*;
|
||||
|
||||
|
||||
12
src/main.rs
12
src/main.rs
@@ -2,8 +2,8 @@
|
||||
|
||||
use std::env;
|
||||
|
||||
use serenity::framework::standard::StandardFramework;
|
||||
use serenity::prelude::*;
|
||||
use serenity::framework::standard::{StandardFramework};
|
||||
|
||||
// This trait adds the `register_songbird` and `register_songbird_with` methods
|
||||
// to the client builder below, making it easy to install this voice client.
|
||||
@@ -36,16 +36,14 @@ async fn main() {
|
||||
.configure(|c| c.prefix("ALAN! "))
|
||||
.group(&GENERAL_GROUP);
|
||||
|
||||
let mut client =
|
||||
Client::builder(&token, intents)
|
||||
let mut client = Client::builder(&token, intents)
|
||||
.event_handler(Handler)
|
||||
.framework(framework)
|
||||
.register_songbird()
|
||||
.await.expect("Err creating client");
|
||||
.await
|
||||
.expect("Err creating client");
|
||||
|
||||
if let Err(why) = client.start().await {
|
||||
println!("Client error: {:?} <-- This is a test clause -->", why);
|
||||
println!("Client error: {:?}", why);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user