Commit graph

62 commits

Author SHA1 Message Date
Lynnesbian
fbde3cb911
only use pleroma mode if 'prev' key exists, handle final page better 2020-03-08 19:57:06 +10:00
Lynnesbian
7d718bbe3a
minor code cleanup 2020-03-08 19:46:07 +10:00
Lynne
910829d946 don't insert duplicate posts 2019-08-16 13:50:47 +10:00
Lynne
e5f91f6c0b fixed wrong db name 2019-08-16 02:02:06 +10:00
Lynne
8eb2750d86 okay this is a big one. fixes #27.
- fixed: compatibility with snowflake IDs
- fixed: no longer assume userids will be unique across instances
- fixed: don't use post ID for sorting
- fixed: we now store userid and id as VARCHAR instead of INT
- new: print friendly message if access token is invalid
- lynne: relieved to be done with this

i tested this with a bot that follows mastodon users. if any of the people your ebooks bot is following (and therefore learning from) use pleroma, you need to delete toots.db.
2019-08-15 11:56:27 +10:00
Lynne
6ae8586500 add sort id to keep track of latest posts rather than post id 2019-08-14 15:17:38 +10:00
Lynne
c8d7e391a0 add sort id if it doesn't exist 2019-08-14 15:10:53 +10:00
Lynne
02ca3d3a50 create config if it doesn't exist 2019-08-14 15:00:35 +10:00
Lynne
1261af29c3 fix silly mistake 2019-08-07 13:48:45 +10:00
Lynne
1fbaf17e3e allow users to specify custom config.json location 2019-08-07 13:46:57 +10:00
Lynne
023056b5d5 fix potential keyerror 2019-07-10 10:43:56 +10:00
Lynne
a19d429841 added documentation and default value for as of yet unimplemented paired punctuation stripping functionality (#25) 2019-07-01 17:19:52 +10:00
Lynne
91d4d7303a removed legacy code 2019-07-01 17:05:08 +10:00
Lynne
42b23091d9 blacklist knzk.me (rip) 2019-07-01 11:21:08 +10:00
Lynne
575c473301
Merge pull request #24 from notagoat/pin-branch
Add un/pin to the bot
2019-05-19 23:09:11 +10:00
Lynne
354ea46dcb
code cleanup, fixes #23 2019-05-19 23:06:31 +10:00
Lynne
5fcefd12b0
remove obsolete update code 2019-05-19 22:45:55 +10:00
notagoat
011ec2c9a8 Added the ability to pin and unpin toots with the pin and unpin command. Would like to clean up code as well as possibly toot confirmation and error messages 2019-05-19 13:31:42 +01:00
Lynne
8fe30f0c88 fix a keyerror 2019-05-07 03:14:30 +10:00
Lynne
ae75212eba less rude comment 2019-05-07 03:05:02 +10:00
Lynne
a8ac5869d0 added specific error for rate limit exceeded 2019-05-07 03:02:42 +10:00
Lynne Lawson
90e3cfc64c don't create infinite loop threads, finally fixes #17 2019-05-04 16:44:57 +10:00
Lynne
3f998c018e
mention_handling defaults to 1 2019-04-29 14:24:52 +10:00
Lynne
99d1d13fbf
handle cfg defaults better 2019-04-29 13:59:37 +10:00
Lukas Fülling
c0cf42a41a add config option to filter for language 2019-02-25 19:44:58 +01:00
Lynne
b00af91305
fixed CW stuff 2019-02-25 11:28:05 +10:00
Lynne
7a337e0fc6
removed unecessary break 2019-02-25 11:22:01 +10:00
Lynne
46792f699f
remove webfingering wikipedia link 2019-02-25 11:18:38 +10:00
Lynne
2cecfd42a5
added support for learning from CW'd posts 2019-02-25 11:17:06 +10:00
Lynne
64b49da4eb
Merge branch 'master' into master 2019-02-23 10:25:15 +10:00
Lynne
0e01d5d8ec
Merge pull request #12 from SneakyBastardSword/master
precompile regexes
2019-02-23 10:23:23 +10:00
Lynne
4438d797e7
use config.sample.json if config.json doesn't exist 2019-02-21 13:37:45 +10:00
Lucina Wilton
20c3df5393 fixed tabs i think hopefully 2019-02-07 10:45:44 -05:00
Lucina Wilton
f71c4af0e6 precompiled regexes used inside of loop 2019-02-07 10:27:52 -05:00
Lynne
0d162b067b
webfinger is NOT a joke. 2019-02-07 10:58:27 +10:00
Lynne
5d62b17310
removed hacky solution, added misskey support 2019-02-07 10:53:23 +10:00
Lynne
66899c8226
added instance blacklist 2019-01-11 23:08:53 +10:00
Lynne
0141b513a9
minor fix 2019-01-11 23:05:45 +10:00
Lynne
2e0bf28c8e
funy coment 2019-01-11 23:02:36 +10:00
Lynne
9bbd659bf5
main.py now uses functions.py's extract_toot func 2019-01-11 22:58:17 +10:00
Lynne
e58097615d
more commenting 2019-01-11 22:15:05 +10:00
Lynne
adbf6527e2
removed unused legacy code 2019-01-11 22:13:23 +10:00
Lynne
480c425b82
easier to understand logging 2019-01-11 22:08:10 +10:00
Lynne
4004104766
better commenting, handle missing config.json fields 2019-01-11 22:05:29 +10:00
QBFreak
56a5a3fff5 Fixes for Pleroma: Empty strings mean no CW, oi['object']['id'] compares to uri field in db 2018-12-29 18:58:43 -05:00
Lynne
e48ce83b02
removed unnecessary todo 2018-12-12 15:44:22 +10:00
Lynne
e07d612e30
less indentified 2018-11-29 05:36:05 +10:00
Lynne
ad707fda96
actually use ZWS instead of RLE 2018-11-27 21:29:50 +10:00
Lynne
ce965605ce removed debug message 2018-11-13 12:00:42 +10:00
Lynne
537dd7993b restored friendly error messages 2018-11-09 21:50:36 +10:00