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],