From 09308a407aace3f6536026992e6c2cc5ea3a533b Mon Sep 17 00:00:00 2001 From: ModulatingForce <116608425+modulatingforce@users.noreply.github.com> Date: Wed, 20 Dec 2023 20:52:20 -0500 Subject: [PATCH] add internal types --- src/core/botinstance.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/core/botinstance.rs b/src/core/botinstance.rs index 4472467..86428dd 100644 --- a/src/core/botinstance.rs +++ b/src/core/botinstance.rs @@ -30,6 +30,18 @@ pub enum ChType { pub use ChType::Channel; +pub enum ModType { + BotModule(String), +} + +pub use ModType::BotModule; + +pub enum EnType { + Enabled(ChType), +} + +pub use EnType::Enabled; + pub struct BotInstance { prefix : char, @@ -37,7 +49,7 @@ pub struct BotInstance { pub client : TwitchIRCClient,StaticLoginCredentials>, pub incoming_messages : UnboundedReceiver, pub ratelimiters : HashMap, // used to limit messages sent per channel - // botmodules : Hashmap, + // botmodules : HashMap>, twitch_oauth : String, pub bot_channels : Vec, /*bot_commands : Vec[BotCommand], @@ -96,7 +108,7 @@ impl BotInstance { incoming_messages : incoming_messages, client : client, ratelimiters : ratelimiters, // used to limit messages sent per channel - // botmodules : Hashmap, + // botmodules : HashMap::new(), twitch_oauth : oauth_token, bot_channels : botchannels, /*bot_commands : Vec[BotCommand],