Updated dependencies

Updated formatting file
Changed the command line argument system
Updated error checking and matching logic to be easier to work with
Moved groups of functions to more correct modules
Updated the constants.rs file and added a help string for use with the new argument system
Disabled lua for now, the rust side of the bot takes priority
Changed the shutdown handler to be easier to work with
Added shutdown monitor task that gets started after the bot is ready, allowing a graceful shutdown from anywhere in the program, authentication is expected to be handled at the place of calling, not within the shutdown function
Added a basic database interface, SQLite will be implemented first as it is the simplest and most useful to the spiff team
This commit is contained in:
lever1209 2025-02-18 16:46:25 -04:00
commit 578918b22f
Signed by: lever1209
GPG key ID: AD770D25A908AFF4
18 changed files with 1564 additions and 644 deletions

11
src/databases/postgres.rs Normal file
View file

@ -0,0 +1,11 @@
use std::process::exit;
use tracing::error;
pub fn create_interface() -> Result<(), Box<dyn std::error::Error>> {
//warn!("You must provide both a username and password via `dbuser` and `dbpass`");
//exit(-1);
error!("Sorry! this database kind is not implemented right now.");
exit(-1);
}