Commit graph

98 commits

Author SHA1 Message Date
b3yond e1d1bd91f8 fixing None TypeError 2019-08-09 14:41:14 +02:00
b3yond 4f5f63b20f logging telegram messages for debug purposes 2019-08-09 14:35:01 +02:00
b3yond 6686833ab5 ... sending text reports should of course be allowed. 2019-08-09 12:24:09 +02:00
Enno G 86af9e9a9f Change to hasattr 2019-07-22 20:51:49 +02:00
SchoolGuy b6b3aa5bfc Check if the text property is inside the message object. 2019-07-14 15:58:22 +02:00
b3yond 87c263cb3f fixing import error 2019-05-17 20:42:13 +02:00
b3yond b379620765 Merge pull request #86 from ticketfrei/masto502
don't log Mastodon 502 errors.
2019-05-04 12:04:51 +02:00
b3yond 39dbfacf28 Merge pull request #93 from ticketfrei/images
Notify that telegram image reports are not supported. #90
2019-05-04 10:23:34 +02:00
sid 647d5c028c Update active_bots/telegrambot.py
Co-Authored-By: b3yond <b3yond@riseup.net>
2019-05-04 10:22:03 +02:00
b3yond 3ddc3b35a3 Notify that telegram image reports are not supported. #90 2019-05-03 14:35:06 +02:00
b3yond e66d167a0a don't log Mastodon 502 errors. 2019-05-03 10:07:16 +02:00
b3yond 35bbe5f075 fixed wrong exception 2019-02-19 16:16:21 +01:00
b3yond e36df6e740 Merge pull request #76 from ticketfrei/envs
Use environment variables for config values
2019-01-11 23:25:31 +01:00
b3yond 83d7dd91e6 no need for such a verbose error message. 2019-01-11 15:16:37 +01:00
b3yond 3590aa67a3 fixing shutdown when exim4 is not set up 2019-01-11 14:52:58 +01:00
git-sid 5c2ca271d6 Fix pep8 non-compliant linebreak 2019-01-07 19:05:39 +01:00
git-sid fe5c24d7fa Replace 3 dots with ellipsis to save space 2019-01-07 19:05:32 +01:00
b3yond 96b4975b1f fixing the original TypeError 2018-12-31 15:33:50 +01:00
b3yond be568b7827 when you get crashes bc of your log messages -. 2018-12-31 15:32:19 +01:00
b3yond 6a206f1c0f more verbose telegram error messages 2018-12-31 15:27:11 +01:00
b3yond 5e5429dcfe introduce extra var bc can't write to private attribute 2018-11-12 12:32:28 +01:00
b3yond 25b9108e7f updated example config options + 1 little fix 2018-11-06 08:56:24 +01:00
b3yond 7a7d405072 fix mailbot crash:
File "/srv/ticketfrei/active_bots/mailbot.py", line 37, in post
    if rec not in report.author:
TypeError: argument of type 'NoneType' is not iterable
2018-10-26 18:20:01 +02:00
b3yond 3d869e57ac added 502 to unlogged Telegram error codes 2018-10-26 17:27:00 +02:00
b3yond 75f508dcdf excepted return message 34 so it doesn't get logged #39 2018-10-11 22:22:37 +02:00
b3yond 87fe7c1d59 excepted with wrong Exception 2018-10-11 21:30:55 +02:00
b3yond 7fbf7521fc called wrong user method 2018-10-11 21:29:02 +02:00
b3yond 73ce2b53a9 fixing bug; twitterDM object wasn't created 2018-10-11 21:24:53 +02:00
b3yond 9121b49d0a check if mention is in reply to anything #41 2018-10-08 23:32:33 +02:00
b3yond ea95384a10 Revert "crawl the username only once from twitter and save to db #45"
This reverts commit 9836ec7752.
2018-10-08 23:27:45 +02:00
b3yond 1f09a92c58 crawl the username only once from twitter and save to db #45 2018-10-08 21:31:25 +02:00
b3yond cbf5502f99 fix repost bug 2018-10-08 21:26:39 +02:00
b3yond 385941a2c6 ignore PGP signatures; I hope those messages get posted now #40 2018-10-08 15:02:27 +02:00
b3yond 35c3052fcd really fix shutdown in #40 2018-10-07 23:28:29 +02:00
b3yond 0337869dd0 fix shutdown in #40 2018-10-07 23:27:06 +02:00
b3yond 86622c66cb reverting #39 - make rate limits per account, not app 2018-10-07 22:10:48 +02:00
b3yond ce88e4976d fixing #42 - excepting more Telegram error codes 2018-10-07 19:09:02 +02:00
b3yond 9c0744c9d4 Merge remote-tracking branch 'origin/multi-deployment' into multi-deployment 2018-10-07 18:48:05 +02:00
b3yond 5c13e1711a fixing #40 - treating different message MIMEtypes 2018-10-07 18:47:37 +02:00
b3yond df007cd7e3 globals are in a separate python file now #39 #45 2018-10-06 10:44:07 +02:00
b3yond 6f5db8bb90 fixing #44 - refactoring how mails are sent 2018-10-06 10:20:37 +02:00
b3yond 5f24384a9a fixing #38: putting the city into the From address of report mails 2018-10-06 02:46:54 +02:00
b3yond a459ba92c1 fixing #39 - saving last request in global var, not db. 2018-10-06 00:56:12 +02:00
b3yond 76ca4d772a fixed #41 - mention has to be in status text now 2018-10-05 23:40:41 +02:00
b3yond 272fcb2d49 crawl only mentions, no replies 2018-10-05 11:02:12 +02:00
b3yond a70a7593ad payload is extracted later, we need the message object here 2018-10-05 10:56:34 +02:00
b3yond 044185ff91 get text of email, not message object 2018-09-25 11:06:08 +02:00
b3yond c7dd0ac16b save the newest id, not the current 2018-09-24 23:08:29 +02:00
b3yond 2129306758 excepting and logging Twitter Errors to prevent crashes 2018-09-24 23:02:10 +02:00
b3yond 8255b833fb don't require correctly cased mail addresses 2018-09-24 22:40:29 +02:00