mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-07-31 16:16:26 +00:00
Reorganize mafiabot source files from nested mafiabot_core/ subdirectory to root-level structure to match the original file layout. This includes: - src/: Core Ada source files (engine, daemons, network, payloads) - config/: Bot configuration modules - tests/: Test suites The incorrect subdirectory structure has been removed and replaced with the proper root-level organization.
29 lines
895 B
Ada
29 lines
895 B
Ada
-- I/O-facing package: SPARK_Mode Off.
|
|
-- Environment reads are external state; prove the callers, not the reader.
|
|
pragma SPARK_Mode (Off);
|
|
|
|
package Bot_Config is
|
|
|
|
Config_Missing : exception;
|
|
|
|
Max_Token_Length : constant := 256;
|
|
Max_Guild_Length : constant := 64;
|
|
|
|
subtype Token_Buffer is String (1 .. Max_Token_Length);
|
|
subtype Guild_Buffer is String (1 .. Max_Guild_Length);
|
|
|
|
type Bot_Configuration is record
|
|
Bot_Token : Token_Buffer := (others => ' ');
|
|
Token_Length : Natural := 0;
|
|
Guild_ID : Guild_Buffer := (others => ' ');
|
|
Guild_Length : Natural := 0;
|
|
Command_Prefix : Character := '!';
|
|
Max_Connections : Positive := 4;
|
|
Request_Timeout : Duration := 30.0;
|
|
end record;
|
|
|
|
function Load return Bot_Configuration;
|
|
procedure Validate (Config : Bot_Configuration);
|
|
|
|
end Bot_Config;
|