0
0
Fork 0
Commit graph

414 commits

Author SHA1 Message Date
Oliver-Akins
3a03153d40 Bump Discord API version to support threads 2021-08-01 02:19:39 -06:00
Oliver-Akins
debf0c2a82 If the username is blank, assume the guild ID in the path is the username. 2021-07-26 23:36:59 -06:00
Oliver-Akins
18da6ddcc1 Fix error if the query parameter is not defined 2021-07-26 23:36:32 -06:00
Oliver-Akins
b2e121aa8e Add an endpoint for viewing the guild bracket data through a GET request 2021-07-26 23:30:15 -06:00
Oliver-Akins
53a6e7f350 Fix error not being able to delete your vote when selecting index=0 2021-07-26 13:10:37 -06:00
Oliver-Akins
0fb3eb521c Update dropdown to actually detect the person's old vote. 2021-07-23 20:57:04 -06:00
Oliver-Akins
c63d1ea58b Pass the credentials to the endpoint 2021-07-23 20:32:00 -06:00
Oliver-Akins
e602fb1bd2 Add the channel ID of the message to the bracket data 2021-07-23 20:31:44 -06:00
Oliver-Akins
aba1e2d736 Fix the winners endpoint to work correctly. 2021-07-23 20:31:26 -06:00
Oliver-Akins
845aa7c1ae Add auth to the server injection and adjust channel ID storage 2021-07-23 20:31:08 -06:00
Oliver-Akins
1819bd993e Add auth to the server injections 2021-07-23 20:30:37 -06:00
Oliver-Akins
f73790a570 Update isTied endpoint to return data rather than nothing on success 2021-07-23 13:54:40 -06:00
Oliver-Akins
f168eea621 Update interaction handlers to work with the new DB structure 2021-07-23 13:27:46 -06:00
Oliver-Akins
ea782af9d9 Update to use the data functions 2021-07-23 13:27:33 -06:00
Oliver-Akins
278abb3c02 Add DB operations for used quotes and history. 2021-07-23 13:27:12 -06:00
Oliver-Akins
4da7cb9b0a Update all the endpoints to work with the new DB structure 2021-07-23 13:22:57 -06:00
Oliver-Akins
1c9d01ea22 Change the authentication to use the custom auth password on any path that starts with /discord/auth in order to also catch the callback instead of having infinite password prompt looping 2021-07-23 13:22:18 -06:00
Oliver-Akins
62981bd390 Add bracket data for resetting the bracket 2021-07-23 13:21:32 -06:00
Oliver-Akins
4f75202428 Add an interface for the bracket history 2021-07-23 13:21:11 -06:00
Oliver-Akins
8355d68a64 Edit the union type for deletion methods 2021-07-23 12:48:38 -06:00
Oliver-Akins
2f63b8d635 Add methods for disabling the old quote bracket 2021-07-23 12:48:04 -06:00
Oliver-Akins
0d158babe2 Move the callback rejection before creating the webhook 2021-07-23 12:13:08 -06:00
Oliver-Akins
8dd58b81c5 Get guild ID from the callback URL instead, allow me to not have to create the webhook in order to get the ID and then have to delete it if it isn't allowed to be created. 2021-07-23 12:12:19 -06:00
Oliver-Akins
eef056fe59 Modify the constants 2021-07-23 11:48:45 -06:00
Oliver-Akins
1919008217 Specify that we only care about the src folder 2021-07-23 11:48:21 -06:00
Oliver-Akins
4c039d713f Add Hapi's basic auth library 2021-07-23 11:48:07 -06:00
Oliver-Akins
8a119767be Modify database save/load location 2021-07-23 11:47:44 -06:00
Oliver-Akins
51a9783b5d Add basic authentication to the API 2021-07-23 11:47:05 -06:00
Oliver-Akins
be470cda9e Restructure database to have per-guild data 2021-07-22 12:56:24 -06:00
Oliver-Akins
0cc34a1517 Edit config structure to have per-guild configuring 2021-07-22 12:56:06 -06:00
Oliver-Akins
cc68fd3d72 Add support for per-guild database setup 2021-07-22 12:54:54 -06:00
Oliver-Akins
3b7a44e133 Add a unique message for when someone selects the same vote in the dropdown that they are already voting for 2021-07-19 15:44:09 -06:00
Oliver-Akins
b30e8deb68 Make it so all quotes aren't marked as winners in the brackets 2021-07-19 15:41:21 -06:00
Oliver-Akins
7534cfb4e9 Catch the signals that are needed from systemd as well 2021-07-19 11:20:46 -06:00
Oliver-Akins
8b9d2cc80c Add an endpoint to check to see if there's a tie, and if so alert Discord 2021-07-19 01:08:10 -06:00
Oliver-Akins
cdc5ed5cf6 Check the all-elimination clause in the create bracket 2021-07-19 01:07:52 -06:00
Oliver-Akins
3eb482e313 Remove debug statements 2021-07-18 01:57:57 -06:00
Oliver-Akins
39490a866a Add a template service file to the directory 2021-07-18 01:25:06 -06:00
Oliver-Akins
7028b861aa Remove the huge docs file and add alert that it isn't currently supported 2021-07-18 01:21:33 -06:00
Oliver-Akins
005669dd92 Add path resolution to the module 2021-07-18 01:19:04 -06:00
Oliver-Akins
5fb65cee0b Add required dependencies 2021-07-18 01:18:48 -06:00
Oliver-Akins
3d9feabe88 Add code to make the stuff work 2021-07-18 01:18:18 -06:00
Oliver-Akins
a18b73fe52 Add all JSON files to the gitignore 2021-07-15 14:18:28 -06:00
Oliver-Akins
3f60594d54 Remove unused file 2021-07-15 14:18:14 -06:00
Oliver-Akins
a84465d310 Remove file that's no longer needed 2021-07-14 23:42:13 -06:00
Oliver-Akins
bf13c60e38 Update gitignore 2021-07-13 11:49:16 -06:00
Oliver-Akins
5daaabe536 Reset files 2021-07-11 20:16:12 -06:00
Oliver-Akins
346a37edc5 Remove dependencies 2021-07-11 20:16:06 -06:00
Oliver-Akins
c1bdebe0b8 Change domain from tyler to oliver 2021-04-05 18:55:30 -06:00
Oliver-Akins
bcf86bbfb8 Remove extra horizontal rule 2021-04-05 18:53:52 -06:00