|
|
@ -3,7 +3,6 @@ import sys |
|
|
|
import time |
|
|
|
import time |
|
|
|
import sched |
|
|
|
import sched |
|
|
|
from datetime import datetime, timezone, timedelta |
|
|
|
from datetime import datetime, timezone, timedelta |
|
|
|
import json |
|
|
|
|
|
|
|
import bogofilter |
|
|
|
import bogofilter |
|
|
|
import html2text |
|
|
|
import html2text |
|
|
|
from collections import deque |
|
|
|
from collections import deque |
|
|
@ -312,8 +311,6 @@ def toot_dict_to_mail(toot_dict): |
|
|
|
return bogofilter.Mail(headers = headers, body = body) |
|
|
|
return bogofilter.Mail(headers = headers, body = body) |
|
|
|
|
|
|
|
|
|
|
|
bot = Bot(CringeBotClient, toml.load("config.toml")) |
|
|
|
bot = Bot(CringeBotClient, toml.load("config.toml")) |
|
|
|
#with open("config.json") as json_file: |
|
|
|
|
|
|
|
# bot = Bot(CringeBotClient, json.load(json_file)) |
|
|
|
|
|
|
|
bot.start() |
|
|
|
bot.start() |
|
|
|
|
|
|
|
|
|
|
|
while True: |
|
|
|
while True: |
|
|
|