Commit graph

2678 commits

Author SHA1 Message Date
jesopo
51c914ebae get account id (not just account name) from WHOX
closes #116
2019-10-20 18:27:06 +01:00
jesopo
f7aa56b8eb also support twitter mobile urls 2019-10-20 17:10:01 +01:00
jesopo
31531949ce flip create/delete tag detection logic 2019-10-20 13:39:04 +01:00
jesopo
a4fbc150c8 add missing ] 2019-10-20 13:36:26 +01:00
jesopo
b152c5e3a7 return None url param for tag_push 2019-10-20 13:34:41 +01:00
jesopo
e0403aa3d2 added gitlab Tag Push events 2019-10-20 12:51:11 +01:00
jesopo
ae549575e4 still show url when shortening is turned off 2019-10-19 18:58:29 +01:00
jesopo
4cce0bb54e dont shorten git webhook urls by default 2019-10-19 17:09:04 +01:00
jesopo
ecca7927fe youtube playlist info should be returning URL as a tuple item 2019-10-18 16:40:31 +01:00
jesopo
1c02de8a69 change !fedi "!" arg to still show CW but also show content of Note 2019-10-18 15:54:36 +01:00
jesopo
20a115e71d add "!" arg to !fedi, to denote "dont show content warning" 2019-10-18 15:43:17 +01:00
jesopo
40a8406054 put a permission restriction on !tcpup - it could be abused for port scanning 2019-10-18 15:18:46 +01:00
jesopo
4391176c7f major security fix: adding api keys should be admin-only 2019-10-18 15:17:04 +01:00
jesopo
f7d34e16bb if a nickname has no location set, assume it's a location 2019-10-18 15:03:19 +01:00
jesopo
480a4f73a9 remove now-unused formatting params for urls 2019-10-18 14:07:34 +01:00
jesopo
86147ded77 pass git_webhook urls up to __init__.py to be shortened 2019-10-18 14:03:20 +01:00
jesopo
2b4f5dc75b correctly color/phrase opened, closed and merged for MRs 2019-10-18 13:31:21 +01:00
jesopo
afd6800c98 show merge_request/merge events 2019-10-18 13:28:24 +01:00
jesopo
7d786baa65 "PR"->"MR" again, "open"->"opened" etc for MRs too 2019-10-18 12:20:23 +01:00
jesopo
b151e7eecd 'PR' -> 'MR' (they're "merge requests" on gitlab, not "pull requests") 2019-10-18 12:02:56 +01:00
jesopo
963d0d2de7 'opened' -> 'open' etc for gitlab event categories 2019-10-18 11:58:10 +01:00
jesopo
53b2407072 'open' -> 'opened' etc for gitlab issue webhook actions 2019-10-18 11:19:16 +01:00
jesopo
123cdcf0da pull_request -> merge_request 2019-10-18 03:52:59 +01:00
jesopo
8ff4ad19eb we should be showing 'title' (not 'description') for gitlab issue events 2019-10-17 11:50:57 +01:00
jesopo
a6093092b1 'issues' should be an alias for 'issue' in gitlab 2019-10-17 11:49:07 +01:00
jesopo
4a4a0ac45b dont fail !weather when we decide a nickname is a location 2019-10-16 15:53:34 +01:00
jesopo
6d29291f47 also catch m.youtube.com urls 2019-10-15 17:27:02 +01:00
jesopo
fa97f12689 support AP Notes with content outside of HTML tags (e.g. pleroma) 2019-10-15 16:44:28 +01:00
jesopo
491ad531c2 mapped event names for gitlab webhooks should be 'issue' not 'issues' 2019-10-15 16:20:41 +01:00
jesopo
f0a9f00b57 'issues' -> 'issue', 'pull_request' -> 'merge_request' 2019-10-15 16:14:15 +01:00
jesopo
2f94e7546f actually instantiate gitlab in git_webhooks/__init__.py 2019-10-15 16:10:18 +01:00
jesopo
be30cb81af add first draft of gitlab webhook support 2019-10-15 16:04:30 +01:00
jesopo
41f5c5d607 move cve.py to bitbot-modules repo 2019-10-15 15:27:44 +01:00
jesopo
3f4eebf85b show ,fedi latest-tweet also if it's a self-reply 2019-10-15 15:24:57 +01:00
jesopo
f739064d10 show first toot if it's a boost, fix Note boost formatting 2019-10-15 15:13:28 +01:00
jesopo
205049ab6f remove unused util functions in git_webhooks/gitea.py 2019-10-15 10:53:29 +01:00
jesopo
124fc4fc42 Set duck_lines to -1 when a duck is waiting to quack - do not allow bef/trap
closes #177
2019-10-15 10:33:13 +01:00
jesopo
e58e9a2058 add .back suffix to database backups 2019-10-14 18:13:43 +01:00
jesopo
fe16c0132f prune database backups even if there's more than 5 2019-10-14 18:07:18 +01:00
jesopo
11ade023e8 eat errors for failing to parse @commit 2019-10-14 14:03:47 +01:00
jesopo
a9111c7241 add ModuleManager.try_reload_modules(), to try reloading in a transaction
if any of the modules fails to reload, rollback and use the already loaded modules. closes #179
2019-10-14 12:56:04 +01:00
jesopo
af1fd37003 actually explicitly strip "unknown" html tags from fedi notes 2019-10-14 10:46:15 +01:00
jesopo
ea589b744f
Merge pull request #173 from panicbit/splitpoints
Adjust line splitpoints to word boundaries. closes #159
2019-10-12 21:50:24 +01:00
panicbit
c94327b58b Remove @staticmethod 2019-10-12 18:30:22 +02:00
James Lu
dda27c1b1c
Show 0 karma in the colour of gold™ 2019-10-11 23:23:58 -07:00
jesopo
3fc7294539 exit when all servers are disconnected after ctrl+c 2019-10-11 17:06:37 +01:00
jesopo
0207e8e2b6 Revert "no longer treat ctrl+c as "shutdown" - bitbotctl will take this job"
This reverts commit 73e6ede8cc.
2019-10-11 15:41:51 +01:00
jesopo
73e6ede8cc no longer treat ctrl+c as "shutdown" - bitbotctl will take this job 2019-10-11 15:39:01 +01:00
jesopo
a5eca53f0a we need both id and server for !disconnect 2019-10-10 18:02:55 +01:00
jesopo
dd94f3a918 '.values()' -> '.items()' 2019-10-10 17:16:00 +01:00