(cont) BotManagers
This commit is contained in:
parent
a6aedb291f
commit
a556a5aa89
2 changed files with 10 additions and 0 deletions
src/core
|
@ -48,6 +48,14 @@ pub struct Chat {
|
|||
impl Chat {
|
||||
|
||||
|
||||
pub fn init(ratelimiters:HashMap<ChType, RateLimiter>,
|
||||
client:TwitchIRCClient<TCPTransport<TLS>, StaticLoginCredentials>) -> Chat {
|
||||
Chat{
|
||||
ratelimiters : ratelimiters,
|
||||
client : client,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn init_channel(&mut self, chnl:ChType) -> () {
|
||||
let n = RateLimiter::new();
|
||||
self.ratelimiters.insert(chnl,n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue