From 2e242aea1e06571ec415530b478d240b8f4e316d Mon Sep 17 00:00:00 2001 From: Stef Dunlap Date: Tue, 14 Jun 2022 16:46:52 -0400 Subject: Fixes for use off of tilde.chat/tildeverse - correctly parses channels from config per config.example.yaml - sets TLS to None in case of no TLS - on tilde.town we commonly connect to localhost w/o ssl - for ircrobots (and/or it's dependencies) TLS must be none (not false) or else it will assume SSL/TLS I am not a python expert, so please feel free to comment or fix. --- tooter.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tooter.py') diff --git a/tooter.py b/tooter.py index 9c16e71..f2dba55 100644 --- a/tooter.py +++ b/tooter.py @@ -36,6 +36,10 @@ def think(self, line): res = account.toot(f"{status}\n~{author}") if res: return "tooted! {}".format(res["url"]) + else: + return "tooted failed :(" + else: + return "no account :(" else: return HELP_TEXT -- cgit 1.4.1