Commit graph

4581 commits

Author SHA1 Message Date
jesopo
defe9045c3 Update CHANGELOG.md 2019-10-14 15:37:56 +01:00
jesopo
88ffa421c1 add bitbotctl reload command to reload all modules 2019-10-14 14:52:58 +01:00
jesopo
99b4663ce7 run Control callbacks on main thread
closes #180
2019-10-14 14:51:53 +01:00
jesopo
11ade023e8 eat errors for failing to parse @commit 2019-10-14 14:03:47 +01:00
jesopo
e50290046a remove safe arg from ModuleManager.load_modules() - try_reload_modules covers this now 2019-10-14 13:02:16 +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
4940aff877 refactor out chosing loadable modules in to _list_valid_modules() 2019-10-14 11:37:04 +01:00
jesopo
af1fd37003 actually explicitly strip "unknown" html tags from fedi notes 2019-10-14 10:46:15 +01:00
jesopo
a75386df32 move bitbot.service, update it for start.py -> bitbotd 2019-10-14 10:31:49 +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
jesopo
5233ddb20a
Merge pull request #176 from jlu5/patch-1
Show 0 karma in the colour of gold™
2019-10-12 07:25:47 +01:00
James Lu
dda27c1b1c
Show 0 karma in the colour of gold™ 2019-10-11 23:23:58 -07:00
jesopo
2ca702b787 don't have version 'v' prefix in VERSION 2019-10-11 17:27:36 +01:00
jesopo
54b87c74a8 add platform to setup.py (linux only) 2019-10-11 17:20:30 +01:00
jesopo
c250eeb7a9 update CHANGELOG.md 2019-10-11 17:18:29 +01:00
jesopo
82f77472c6 'test_handler' -> 'hook_handler' 2019-10-11 17:17:43 +01:00
jesopo
449e690ad7 add setup.py 2019-10-11 17:09:01 +01:00
jesopo
3fc7294539 exit when all servers are disconnected after ctrl+c 2019-10-11 17:06:37 +01:00
jesopo
934a5ec9ea date docs/help/setup.md to use bitbotd as a command 2019-10-11 17:04:11 +01:00
jesopo
14f5ec38ed hold current version in it's own file: VERSION 2019-10-11 17:03:14 +01:00
jesopo
7e9e08941f 'start.py' -> 'bitbotd' 2019-10-11 17:01:59 +01:00
jesopo
85a8ddf2d1 kill bitbotctl connection after rehash 2019-10-11 15:58:47 +01:00
jesopo
0bdce04306 actually send rehash command 2019-10-11 15:58:35 +01:00
jesopo
6a4cdabc93 add "rehash" bitbotctl command 2019-10-11 15:54:43 +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
c0c12d7394 add log command to bitbotctl 2019-10-11 15:31:22 +01:00
jesopo
e31ad590cc first version of bitbotctl - shows INFO logging 2019-10-11 15:16:56 +01:00
jesopo
22b6a19054 try/except Control socket writes 2019-10-11 15:16:39 +01:00
jesopo
de389b34b8 add first real cli functionality: showing log 2019-10-11 15:12:26 +01:00
jesopo
cefde48e42 first draft of infrastructure for unix domain control socket 2019-10-11 14:00:26 +01:00
jesopo
daeb37226a LockFile doesn't need to hold on to _database_location 2019-10-11 14:00:02 +01:00
jesopo
175f90f6a2 add "poll sources" - objects that can provide additional filenos for polling 2019-10-11 13:59:28 +01:00
jesopo
b7b045eadb Don't exit when there are no connected servers
closes #175
2019-10-11 13:06:52 +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
jesopo
0960740aca dont say a vote has changed when it's been "changed" to the same option 2019-10-10 17:15:03 +01:00
jesopo
c2f075599d ignore invalid utf8 in markov log imports 2019-10-10 16:36:59 +01:00
jesopo
fe1c2c0205 'channel.find_setting()' -> 'channel.find_settings()' 2019-10-10 15:27:49 +01:00
jesopo
fd0baff093 only .call() PollHooks when they're "due" 2019-10-10 14:12:58 +01:00
jesopo
1c792f0194 move PoolHook registrations to start.py 2019-10-10 13:58:45 +01:00
jesopo
e624292608 v1.12.0 release 2019-10-10 13:36:55 +01:00
jesopo
a2b73469e6 v1.12.0-rc2 release 2019-10-10 12:43:19 +01:00
jesopo
5be01a45c4 'server.conncect_time' -> 'server.connect_time' 2019-10-10 12:31:24 +01:00
jesopo
4db34b087d server.hostmask() already exists 2019-10-10 12:19:34 +01:00
jesopo
d91cd02d34 change badges.py to use utils.datetime_utcnow() - less code dupe 2019-10-10 12:17:10 +01:00
jesopo
2c19bdb949 add a fairly basic file locking mechanism with src/LockFile.py
closes #96
2019-10-10 12:11:03 +01:00
jesopo
0331b763ff refactor multi-line-to-line normalisation to utils.parse.line_normalise(), use it in rss.py
closes #174
2019-10-10 10:33:18 +01:00
jesopo
cf1002a2a9 strip HTML from RSS entry titles
closes #174
2019-10-10 10:20:44 +01:00