Configuration du délai d'attente
Signed-off-by: ynerant <ynerant@zamokv5.crans.org>
This commit is contained in:
parent
863e59b17e
commit
4629da5e13
|
@ -31,9 +31,10 @@ class Config:
|
|||
|
||||
|
||||
irc: "IRCConfig" = None
|
||||
delay: int = 300
|
||||
search: list["SearchConfig"] = None
|
||||
|
||||
def __init__(self, irc: "IRCConfig", search: list["SearchConfig"]):
|
||||
def __init__(self, irc: "IRCConfig", delay: int, search: list["SearchConfig"]):
|
||||
if isinstance(irc, dict):
|
||||
irc = Config.IRCConfig(**irc)
|
||||
if not search:
|
||||
|
|
|
@ -4,6 +4,8 @@ irc:
|
|||
host: irc.crans.org
|
||||
channel: '#chronodose'
|
||||
|
||||
delay: 300
|
||||
|
||||
search:
|
||||
- position:
|
||||
longitude: 2.2770207
|
||||
|
|
Loading…
Reference in New Issue