refactor(src): cargo format on main.rs
This commit is contained in:
parent
5c2ff8b926
commit
43c081cc31
1 changed files with 7 additions and 7 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -5,22 +5,22 @@ mod events;
|
||||||
mod models;
|
mod models;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
|
use dotenvy::dotenv;
|
||||||
use events::Bot;
|
use events::Bot;
|
||||||
use serenity::all::*;
|
use serenity::Client;
|
||||||
|
use serenity::all::GatewayIntents;
|
||||||
use sqlx::postgres::PgPoolOptions;
|
use sqlx::postgres::PgPoolOptions;
|
||||||
use sqlx::{Pool, Postgres, migrate};
|
use sqlx::{Pool, Postgres, migrate};
|
||||||
use std::env;
|
use std::env;
|
||||||
use tracing::{
|
use tracing::{error, info};
|
||||||
info,
|
use tracing_subscriber::fmt;
|
||||||
error
|
|
||||||
};
|
|
||||||
|
|
||||||
use self::config::emoji::EmojiConfig;
|
use self::config::emoji::EmojiConfig;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
tracing_subscriber::fmt::init();
|
fmt::init();
|
||||||
dotenvy::dotenv().ok();
|
dotenv().ok();
|
||||||
|
|
||||||
let token: String =
|
let token: String =
|
||||||
env::var("DISCORD_TOKEN").expect("❌ | DISCORD_TOKEN missing (check the env file)");
|
env::var("DISCORD_TOKEN").expect("❌ | DISCORD_TOKEN missing (check the env file)");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue