20240127_Working_Without_ExecBody
This commit is contained in:
parent
4184527d19
commit
61dd22c90d
5 changed files with 175 additions and 74 deletions
src/core
|
@ -145,9 +145,9 @@ impl Chat {
|
|||
|
||||
|
||||
|
||||
pub struct BotInstance<F>
|
||||
where
|
||||
F: std::future::Future + ?Sized,
|
||||
pub struct BotInstance
|
||||
// where
|
||||
// F: std::future::Future + ?Sized,
|
||||
{
|
||||
prefix : char,
|
||||
bot_channel : ChType,
|
||||
|
@ -156,7 +156,7 @@ where
|
|||
// pub ratelimiters : HashMap<ChType,RateLimiter>, // used to limit messages sent per channel
|
||||
pub chat : Chat,
|
||||
// botmodules : HashMap<ModType,Vec<EnType>>,
|
||||
pub botmodules : ModulesManager<F>,
|
||||
pub botmodules : ModulesManager,
|
||||
twitch_oauth : String,
|
||||
pub bot_channels : Vec<ChType>,
|
||||
/*bot_commands : Vec[BotCommand],
|
||||
|
@ -168,15 +168,16 @@ where
|
|||
|
||||
|
||||
|
||||
impl<F> BotInstance<F>
|
||||
where
|
||||
F: std::future::Future + 'static,
|
||||
impl BotInstance
|
||||
// where
|
||||
// F: std::future::Future + 'static,
|
||||
// //F: 'static,
|
||||
{
|
||||
|
||||
|
||||
pub fn init() -> BotInstance<F>
|
||||
where
|
||||
F: std::future::Future + 'static,
|
||||
pub fn init() -> BotInstance
|
||||
// where
|
||||
// F: std::future::Future + 'static,
|
||||
{
|
||||
dotenv().ok();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue