feat: split out all the databse interactions into their own file

This commit is contained in:
silver 2024-10-28 00:59:04 +00:00
parent 79f880daea
commit 41407ecefb
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
12 changed files with 348 additions and 318 deletions

View file

@ -1,12 +1,13 @@
use serenity::{
async_trait,
client::{Context, EventHandler},
model::gateway::{GatewayIntents, Ready},
Client,
async_trait,
client::{Context, EventHandler},
model::gateway::{GatewayIntents, Ready},
Client,
};
use skynet_discord_bot::{db_init, get_config, get_server_config_bulk, set_roles, Config, DataBase};
use skynet_discord_bot::{get_config, set_roles, Config};
use std::{process, sync::Arc};
use tokio::sync::RwLock;
use skynet_discord_bot::common::database::{db_init, get_server_config_bulk, DataBase};
#[tokio::main]
async fn main() {