Renamed Module
This commit is contained in:
parent
088bba8309
commit
d836752e29
@ -25,7 +25,7 @@ class Cooldown:
|
|||||||
self.cooldownActionLimit = limit
|
self.cooldownActionLimit = limit
|
||||||
self.cooldownDuration = duration
|
self.cooldownDuration = duration
|
||||||
|
|
||||||
class Cooldowns_Module:
|
class Cooldown_Module:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.cooldownList:list = []
|
self.cooldownList:list = []
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import commands.loader as command_loader
|
|||||||
import credentials
|
import credentials
|
||||||
from commands.command_base import AbstractCommand
|
from commands.command_base import AbstractCommand
|
||||||
|
|
||||||
from cooldowns import Cooldowns_Module
|
from cooldowns import Cooldown_Module
|
||||||
|
|
||||||
class Twitch_Module():
|
class Twitch_Module():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -34,7 +34,7 @@ class Twitch_Module():
|
|||||||
|
|
||||||
# Default Twitch Chat limit is 20 per 30 seconds
|
# Default Twitch Chat limit is 20 per 30 seconds
|
||||||
# If Mod or Op, Twitch Chat limit is 100 per 30 seconds
|
# If Mod or Op, Twitch Chat limit is 100 per 30 seconds
|
||||||
self.twitchChat_cooldown:Cooldowns_Module = Cooldowns_Module()
|
self.twitchChat_cooldown:Cooldown_Module = Cooldown_Module()
|
||||||
self.twitchChat_cooldown.setupCooldown("twitchChat", 20, 32)
|
self.twitchChat_cooldown.setupCooldown("twitchChat", 20, 32)
|
||||||
|
|
||||||
def join_channel(self, credential: credentials.Twitch_Credential, channel_name:str):
|
def join_channel(self, credential: credentials.Twitch_Credential, channel_name:str):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user