Commit Graph

52 Commits

Author SHA1 Message Date
Mark Veidemanis b61316d805 Detect queries if nick and channel are the same 2022-08-15 19:24:42 +01:00
Mark Veidemanis a65098c222 Add sinst fetch and fix message send logic 2022-08-15 19:15:12 +01:00
Mark Veidemanis 0b69893e17 Fix query handling and don't send a fake message 2022-08-15 17:59:31 +01:00
Mark Veidemanis b25cb1699f Set the channel limit on connected relays, not active 2022-08-18 07:20:30 +01:00
Mark Veidemanis 659162ebc6 Fix IRC config mutation 2022-08-18 07:20:30 +01:00
Mark Veidemanis d0ea3bb221 Change authentication endpoint 2022-08-18 07:20:30 +01:00
Mark Veidemanis e64aaf99d8 Reorder API endpoints to prevent clashing 2022-08-18 07:20:30 +01:00
Mark Veidemanis 153d3dd847 Reset negative pass status when requesting recheck 2022-08-14 23:58:35 +01:00
Mark Veidemanis c55a4058b1 Use JSON for sending messages 2022-08-14 16:45:40 +01:00
Mark Veidemanis b62200d410 Implement API call to register 2022-08-14 16:26:09 +01:00
Mark Veidemanis e30250603b Convert num to number in registration confirmation 2022-08-14 16:09:32 +01:00
Mark Veidemanis 281eb75b26 Fix variable shadowing 2022-08-14 15:43:48 +01:00
Mark Veidemanis 060ee4f0d5 Implement manual authentication mode 2022-08-14 13:13:05 +01:00
Mark Veidemanis f7d390da32 Implement API for authentication management actions 2022-08-14 12:43:33 +01:00
Mark Veidemanis 39059084ef Add allRelaysActive output to network info 2022-08-14 10:58:28 +01:00
Mark Veidemanis 9b14979f29 Use JSON for joining channels and don't shadow auth variable when getting network info 2022-08-14 09:25:01 +01:00
Mark Veidemanis a204be25c5 Make channel deletion endpoint accept JSON 2022-08-14 00:01:14 +01:00
Mark Veidemanis a82355b660 Add more information to relay API return 2022-08-13 23:36:39 +01:00
Mark Veidemanis abeba6bc06 Update CHANLIMIT on all instances when set via API 2022-08-13 22:36:52 +01:00
Mark Veidemanis 047e9148aa Implement API endpoint to enable authentication 2022-08-13 22:25:29 +01:00
Mark Veidemanis 5c95f35c61 Return chanlimit for each relay 2022-08-13 21:22:43 +01:00
Mark Veidemanis ad7a5cfe49 Check token before attempting to confirm 2022-08-13 20:55:36 +01:00
Mark Veidemanis 92df4fb9a3 Implement API endpoint for provisioning relays 2022-08-13 20:51:31 +01:00
Mark Veidemanis 9470f0d0d9 Implement updating registration via API 2022-08-13 20:36:51 +01:00
Mark Veidemanis df6b9e34a3 Return relay numbers with channel list 2022-08-13 13:47:42 +01:00
Mark Veidemanis facf58ec2c Add connected status to IRC info return and check when getting active relays 2022-08-13 13:40:33 +01:00
Mark Veidemanis 21ed66bc00 Reformat code 2022-08-13 13:32:22 +01:00
Mark Veidemanis 5c63fb5048 Implement getting LIST information from API 2022-08-13 13:27:20 +01:00
Mark Veidemanis 49214644ff Implement migrating networks 2022-08-12 23:32:00 +01:00
Mark Veidemanis 065fe94cbd Improve channel allocation and write basic tests for it 2022-08-12 22:27:49 +01:00
Mark Veidemanis 7e51178a10 Add endpoint to get the bot's nickname 2022-08-09 07:20:30 +01:00
Mark Veidemanis a2b6ebd912 Properly implement querying with API 2022-08-09 07:20:30 +01:00
Mark Veidemanis ec943203d0 Get our hostname from WHO when we create fake events 2022-08-09 07:20:30 +01:00
Mark Veidemanis 8dc176aa54 Fire a fake event when we send a message 2022-08-09 07:20:30 +01:00
Mark Veidemanis 502b45cda5 Allow gaps in relay numbering 2022-08-11 19:22:09 +01:00
Mark Veidemanis 4c8b584ef4 Implement deleting networks 2022-08-02 09:01:34 +01:00
Mark Veidemanis 4c9ac3ec42 Implement adding networks 2022-08-01 23:02:20 +01:00
Mark Veidemanis db4b6cc6f9 Implement requesting channel list for network 2022-08-01 21:38:46 +01:00
Mark Veidemanis dae62ea544 Remove debugging code 2022-08-01 21:31:48 +01:00
Mark Veidemanis e8870e95e7 Implement automatic provisioning 2022-08-01 19:34:35 +01:00
Mark Veidemanis 0dedb545f0 Implement updating aliases 2022-08-01 19:05:12 +01:00
Mark Veidemanis 6909fb68f7 Implement API endpoint to add next relay 2022-07-29 22:39:08 +01:00
Mark Veidemanis 54b5561a75 Implement deleeting relays and fix adding 2022-07-29 22:11:43 +01:00
Mark Veidemanis ba1f8407d1 Implement creating relays via the API 2022-07-29 17:27:40 +01:00
Mark Veidemanis 8409a39e57 Implement relay, channel and alias management 2022-07-27 22:03:42 +01:00
Mark Veidemanis b30a3a535d Implement editing networks via the API 2022-07-27 08:59:17 +01:00
Mark Veidemanis b9c1470410 Implement network and channels view 2022-07-26 22:16:35 +01:00
Mark Veidemanis 5aebf63c2e Implement API endpoint for network listing 2022-07-25 18:05:53 +01:00
Mark Veidemanis 4b33559e65 Implement getting number of channels and users 2022-07-21 13:40:18 +01:00
Mark Veidemanis f589c7fc16 Implement more API functions 2022-07-21 13:40:17 +01:00