forked from Skynet/discord-bot
fmt: clippy and nightly fmt
This commit is contained in:
parent
57d4947edf
commit
9d409e3692
20 changed files with 194 additions and 143 deletions
|
@ -1,14 +1,17 @@
|
|||
use serenity::all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent};
|
||||
use serenity::{
|
||||
all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent},
|
||||
async_trait,
|
||||
client::{Context, EventHandler},
|
||||
model::gateway::{GatewayIntents, Ready},
|
||||
model::gateway::GatewayIntents,
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::database::{db_init, DataBase};
|
||||
|
||||
use skynet_discord_bot::common::set_roles::committee::db_roles_get;
|
||||
use skynet_discord_bot::{get_config, Config};
|
||||
use skynet_discord_bot::{
|
||||
common::{
|
||||
database::{db_init, DataBase},
|
||||
set_roles::committee::db_roles_get,
|
||||
},
|
||||
get_config, Config,
|
||||
};
|
||||
use sqlx::{Pool, Sqlite};
|
||||
use std::{process, sync::Arc};
|
||||
use tokio::sync::RwLock;
|
||||
|
|
|
@ -1,13 +1,17 @@
|
|||
use serenity::all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent};
|
||||
use serenity::{
|
||||
all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent},
|
||||
async_trait,
|
||||
client::{Context, EventHandler},
|
||||
model::gateway::{GatewayIntents, Ready},
|
||||
model::gateway::GatewayIntents,
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::database::{db_init, DataBase};
|
||||
use skynet_discord_bot::common::set_roles::committee;
|
||||
use skynet_discord_bot::{get_config, Config};
|
||||
use skynet_discord_bot::{
|
||||
common::{
|
||||
database::{db_init, DataBase},
|
||||
set_roles::committee,
|
||||
},
|
||||
get_config, Config,
|
||||
};
|
||||
use std::{process, sync::Arc};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
use serenity::all::{ChunkGuildFilter, GuildId};
|
||||
use serenity::{
|
||||
async_trait,
|
||||
client::{Context, EventHandler},
|
||||
model::gateway::{GatewayIntents, Ready},
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::database::{db_init, DataBase};
|
||||
use skynet_discord_bot::common::wolves::cns::get_wolves;
|
||||
use skynet_discord_bot::common::wolves::committees::get_cns;
|
||||
use skynet_discord_bot::{get_config, Config};
|
||||
use skynet_discord_bot::{
|
||||
common::{
|
||||
database::{db_init, DataBase},
|
||||
wolves::{cns::get_wolves, committees::get_cns},
|
||||
},
|
||||
get_config, Config,
|
||||
};
|
||||
use std::{process, sync::Arc};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
use skynet_discord_bot::common::database::db_init;
|
||||
use skynet_discord_bot::common::minecraft::{get_minecraft_config, update_server, whitelist_wipe};
|
||||
use skynet_discord_bot::get_config;
|
||||
use skynet_discord_bot::{
|
||||
common::{
|
||||
database::db_init,
|
||||
minecraft::{get_minecraft_config, update_server, whitelist_wipe},
|
||||
},
|
||||
get_config,
|
||||
};
|
||||
use std::collections::HashSet;
|
||||
|
||||
#[tokio::main]
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
use serenity::all::{ChunkGuildFilter, GuildId};
|
||||
use serenity::{
|
||||
async_trait,
|
||||
client::{Context, EventHandler},
|
||||
model::gateway::{GatewayIntents, Ready},
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::server_icon::{get_config_icons, update_icon};
|
||||
use skynet_discord_bot::{
|
||||
common::database::{db_init, DataBase},
|
||||
common::{
|
||||
database::{db_init, DataBase},
|
||||
server_icon::{get_config_icons, update_icon},
|
||||
},
|
||||
get_config, Config,
|
||||
};
|
||||
use std::{process, sync::Arc};
|
||||
|
|
|
@ -1,13 +1,17 @@
|
|||
use serenity::all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent};
|
||||
use serenity::{
|
||||
all::{ChunkGuildFilter, GuildId, GuildMembersChunkEvent},
|
||||
async_trait,
|
||||
client::{Context, EventHandler},
|
||||
model::gateway::{GatewayIntents, Ready},
|
||||
model::gateway::GatewayIntents,
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::database::{db_init, get_server_config_bulk, DataBase};
|
||||
use skynet_discord_bot::common::set_roles::normal;
|
||||
use skynet_discord_bot::{get_config, Config};
|
||||
use skynet_discord_bot::{
|
||||
common::{
|
||||
database::{db_init, get_server_config_bulk, DataBase},
|
||||
set_roles::normal,
|
||||
},
|
||||
get_config, Config,
|
||||
};
|
||||
use std::{process, sync::Arc};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
|
@ -70,6 +74,6 @@ async fn check_bulk(ctx: &Context) {
|
|||
let db = db_lock.read().await;
|
||||
|
||||
for server_config in get_server_config_bulk(&db).await {
|
||||
normal::update_server(&ctx, &server_config, &[], &[]).await;
|
||||
normal::update_server(ctx, &server_config, &[], &[]).await;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue