Commit graph

57 commits

Author SHA1 Message Date
jesopo
038d6841f1 make !channels PM-only 2019-11-27 13:15:29 +00:00
jesopo
e1f527a374 prefix "hidden" channels in !channels with "*" 2019-11-27 13:13:52 +00:00
jesopo
efbe71bc0e add !servers command 2019-11-27 13:13:42 +00:00
jesopo
5d01db8514 move all datetime-related code from utils/__init__ to utils.datetime 2019-11-15 13:59:09 +00:00
jesopo
4db34b087d server.hostmask() already exists 2019-10-10 12:19:34 +01:00
jesopo
f7455e6347 capitalisation and comma for "!stats <alias>" 2019-09-26 14:59:26 +01:00
jesopo
956cc86072 'path' is now 'args' 2019-09-20 13:34:55 +01:00
jesopo
92840f67ee don't die when channel.topic_setter is null 2019-09-17 14:14:30 +01:00
jesopo
e77124604c hide hidden channels from "!channels" when not pm and not current channel
closes #150
2019-09-17 10:54:07 +01:00
jesopo
4ccfd821c8 update channel.topic_setter-related code 2019-09-16 18:41:47 +01:00
jesopo
7e67b07ada add !channels
closes #147
2019-09-16 16:05:36 +01:00
jesopo
ec5c5808a5 better wording of "!stats <alias>" 2019-09-07 14:16:27 +01:00
jesopo
34e5f976cc support showing !stats per-network 2019-09-07 14:13:44 +01:00
jesopo
890c893ddf Add ircv3.py - for IRCv3-related stats 2019-06-28 18:36:43 +01:00
jesopo
cb2cab627f Remove debug yield check 2019-06-15 18:41:04 +01:00
jesopo
50e9f56ca3 Show when a server connected instead of "bytes read/written per second" in stats
endpoint
2019-06-14 16:12:03 +01:00
jesopo
f614d1fc14 add self check.command, change !config to use new yields 2019-06-14 12:09:42 +01:00
jesopo
11643f6eea Expose IRCChannel.mode_str() on REST API stats endpoint 2019-06-13 11:54:13 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
6b41834a35 connect_time is on server.socket, not server 2019-05-24 17:36:20 +01:00
jesopo
a3a2c1e5a4 Store IRCSocket connect_time, show bytes read/write per second in stats.py 2019-05-24 17:32:59 +01:00
jesopo
052eba788f Show server versoin (from RPL_MYINFO) on /api/servers 2019-05-15 17:13:05 +01:00
jesopo
dc102f258d Add Database.servers.get_by_alias, move IRCBot.get_server to
IRCBot.get_server_by_id, add IRCBot.get_server_by_alias and change
!connect/!disconnect to take aliases instead of IDs
2019-04-24 12:07:30 +01:00
jesopo
716568c21d 'src/IRCServer.capabilities' -> 'src/IRCServer.agreed_capabilities' 2019-02-16 09:12:43 +00:00
jesopo
b6df18930c bytes_written/bytes_read is now on IRCServer.socket (stats.py) 2019-02-11 18:26:16 +00:00
jesopo
dc0a021231 Show capabilities in API server stats (stats.py) 2019-02-08 17:56:13 +00:00
jesopo
b8b0adb811 Sort nicknames case-insensitively (stats.py) 2018-12-26 23:24:43 +00:00
jesopo
e5600a6927 Sort user nicknames on /api/server (stats.py) 2018-12-26 23:22:12 +00:00
jesopo
00d4b9c73f Show list of users in a channel, not just count 2018-11-27 13:34:51 +00:00
jesopo
7df55305ca Make channel stats in /api/servers a dictionary 2018-11-27 13:24:38 +00:00
jesopo
ab60012cbe Add channel stats to /api/servers 2018-11-27 13:23:20 +00:00
jesopo
d72e01aa68 update modules/stats.py to use connection_params 2018-11-11 08:47:21 +00:00
jesopo
8d350aa5f5 Show bytes read/written in server stats 2018-11-11 08:44:46 +00:00
jesopo
7390367a5a Add missing ")" in modules/stats.py 2018-11-08 22:30:06 +00:00
jesopo
57f697a378 Add !caps to show negotiated IRCv3 capabilities 2018-11-08 22:28:32 +00:00
jesopo
95e7b9ea77 Support POST through modules/rest_api.py 2018-10-05 22:49:06 +01:00
jesopo
bc3c9b742e Add api.server endpoint for individual server information 2018-10-05 09:51:17 +01:00
jesopo
808694c113 Return more info for api.servers and api.channels 2018-10-05 09:46:03 +01:00
jesopo
187220c25e Remove prints 2018-10-05 09:45:49 +01:00
jesopo
f31fdc48b3 Add api.modules in modules/stats.py 2018-10-04 17:37:47 +01:00
jesopo
52b7beb407 Provide more information for api.channels 2018-10-04 17:37:34 +01:00
jesopo
f8170d8751 Use URL path for args, not get params 2018-10-04 17:21:40 +01:00
jesopo
b341320e37 Add api.servers endpoint 2018-10-04 17:18:40 +01:00
jesopo
fdddb33f32 Added api.channels handler 2018-10-04 17:10:15 +01:00
jesopo
82b40cc8b2 Add basics of (by-default disabled) REST API 2018-10-04 16:01:13 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
jesopo
10ef985a8a Switch to using docstring for usage, permission and require_mode 2018-09-30 17:29:09 +01:00
jesopo
8b0314b190 Use ModuleManager.BaseModule in more modules 2018-09-27 11:46:10 +01:00
jesopo
51a52e2b0e Switch to using @Utils.hook and docstrings for event hooks 2018-09-26 18:27:17 +01:00
jesopo
ecb9d7cb3f Move most code in root directory to src/ 2018-09-24 15:13:27 +01:00