Configuration du délai d'attente

Signed-off-by: ynerant <ynerant@zamokv5.crans.org>
This commit is contained in:
ynerant 2021-05-11 14:41:47 +02:00
parent 863e59b17e
commit 4629da5e13
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -4,6 +4,8 @@ irc:
host: irc.crans.org
channel: '#chronodose'
delay: 300
search:
- position:
longitude: 2.2770207