|
|
@ -5,13 +5,14 @@ gevent.monkey.patch_all()
|
|
|
|
import csv
|
|
|
|
import csv
|
|
|
|
import logging
|
|
|
|
import logging
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
|
|
|
|
from calendar import timegm
|
|
|
|
from datetime import datetime, timedelta
|
|
|
|
from datetime import datetime, timedelta
|
|
|
|
|
|
|
|
|
|
|
|
import gevent.pool
|
|
|
|
import gevent.pool
|
|
|
|
import argh
|
|
|
|
import argh
|
|
|
|
|
|
|
|
|
|
|
|
from zulip import Client
|
|
|
|
from .zulip import Client
|
|
|
|
from config import get_config
|
|
|
|
from .config import get_config
|
|
|
|
|
|
|
|
|
|
|
|
logging.basicConfig(level='INFO')
|
|
|
|
logging.basicConfig(level='INFO')
|
|
|
|
|
|
|
|
|
|
|
@ -205,7 +206,7 @@ def main(conf_file, hour=-1, no_groups=False, stream="General", no_mentions=Fals
|
|
|
|
send_auth = config.get("send_user", config["api_user"])
|
|
|
|
send_auth = config.get("send_user", config["api_user"])
|
|
|
|
send_client = Client(config["url"], send_auth["email"], send_auth["api_key"])
|
|
|
|
send_client = Client(config["url"], send_auth["email"], send_auth["api_key"])
|
|
|
|
group_ids = config["groups"]
|
|
|
|
group_ids = config["groups"]
|
|
|
|
start_time = time.strptime(config["start_time"], "%Y-%m-%dT%H:%M:%S")
|
|
|
|
start_time = timegm(time.strptime(config["start_time"], "%Y-%m-%dT%H:%M:%S"))
|
|
|
|
schedule = parse_schedule(config["members"], config["schedule"])
|
|
|
|
schedule = parse_schedule(config["members"], config["schedule"])
|
|
|
|
if hour >= 0:
|
|
|
|
if hour >= 0:
|
|
|
|
if not no_groups:
|
|
|
|
if not no_groups:
|
|
|
|