forked from Skynet/discord-bot
feat: pull the config for the festivals locally, using teh imported repo
This commit is contained in:
parent
6d5ad8e418
commit
86a3af2a65
3 changed files with 74 additions and 60 deletions
|
@ -4,15 +4,12 @@ use serenity::{
|
|||
model::gateway::{GatewayIntents, Ready},
|
||||
Client,
|
||||
};
|
||||
use skynet_discord_bot::common::server_icon;
|
||||
use skynet_discord_bot::common::server_icon::{get_config_icons, update_icon};
|
||||
use skynet_discord_bot::{
|
||||
common::database::{db_init, DataBase},
|
||||
get_config, Config,
|
||||
};
|
||||
use std::{
|
||||
process::self,
|
||||
sync::Arc,
|
||||
};
|
||||
use std::{process, sync::Arc};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
#[tokio::main]
|
||||
|
@ -62,9 +59,9 @@ impl EventHandler for Handler {
|
|||
};
|
||||
|
||||
let config_global = config_lock.read().await;
|
||||
let config_toml = server_icon::get_config_icons();
|
||||
let config_toml = get_config_icons::minimal();
|
||||
|
||||
server_icon::update_icon::update_icon_main(&ctx, &db, &config_global, &config_toml).await;
|
||||
update_icon::update_icon_main(&ctx, &db, &config_global, &config_toml).await;
|
||||
|
||||
// finish up
|
||||
process::exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue