0
0
Fork 0
Commit graph

449 commits

Author SHA1 Message Date
Oliver-Akins
c339e96578 Fix the winners endpoint resetting the quote votes before comparison 2021-09-23 17:40:08 -06:00
Oliver-Akins
19411a71e4 Only show the win streak if it has won 2021-09-23 00:34:52 -06:00
Oliver-Akins
8ea9bb4d2a Actually remove the dev_buttons option 2021-09-23 00:13:21 -06:00
Oliver-Akins
8796a5a0c4 Add script to migrate the database to v2 2021-09-23 00:03:41 -06:00
Oliver-Akins
0eca255f33 Move the button objects into their relevant files 2021-09-19 01:45:32 -06:00
Oliver-Akins
e49bc76e20 Add types for Discord components 2021-09-19 01:45:09 -06:00
Oliver-Akins
dfd9325775 Split the thread behaviour for the tie alerts into an enum intead of multiple booleans. 2021-09-19 01:44:48 -06:00
Oliver-Akins
c0a1f4be2e Split the dev buttons off into better controls 2021-09-19 01:44:14 -06:00
Oliver-Akins
f44d1d35e2 Have the button respond with the quote's text 2021-08-30 17:00:43 -06:00
Oliver-Akins
4475273d88 Make the count votes button display the actual quote and not the object 2021-08-30 16:58:24 -06:00
Oliver-Akins
7ee7496ce7 Update the bracket history type 2021-08-30 16:57:57 -06:00
Oliver-Akins
08084b0ab9 Add finalize querystring for incrementing win streak and resetting vote counts 2021-08-30 16:57:24 -06:00
Oliver-Akins
32a4062ea0 Tell the winners endpoint that we are finalizing bracket results with this call 2021-08-30 16:56:40 -06:00
Oliver-Akins
0bc10c0c6b Add missing space 2021-08-30 16:56:11 -06:00
Oliver-Akins
edb33a14eb Use the helper method to create the field, and use the quote text, not the object 2021-08-30 16:55:55 -06:00
Oliver-Akins
108fd65487 Add helper method for creating the field's title 2021-08-30 16:54:43 -06:00
Oliver-Akins
62285d4492 Use the quote text instead of an [object Object] 2021-08-30 16:54:21 -06:00
Oliver-Akins
bd98d87475 Refactor to use the Quote objects instead of strings 2021-08-29 15:16:05 -06:00
Oliver-Akins
4d066aed41 Refactor to use the new database structure 2021-08-29 15:15:36 -06:00
Oliver-Akins
f1586efc9e Move location of colon in field name 2021-08-29 15:14:05 -06:00
Oliver-Akins
a50c63b679 Refactor getQuote to return the Quote object 2021-08-29 14:56:29 -06:00
Oliver-Akins
fb0bdc779e refactor the jump link production in order to have it use the link when we aren't creating a thread. 2021-08-28 23:47:28 -06:00
Oliver-Akins
d4100d0adc refactor how the try_thread variable is created 2021-08-28 23:46:57 -06:00
Oliver-Akins
caf8ad7a5d Correct README section title 2021-08-28 23:44:07 -06:00
Oliver-Akins
c771b8e16a Update the README 2021-08-28 23:40:59 -06:00
Oliver-Akins
79418dcf32 refactor to use the new db schema 2021-08-28 22:58:27 -06:00
Oliver-Akins
cfb09349c9 convert to use the new DB schema 2021-08-28 22:56:06 -06:00
Oliver-Akins
06a5273f7c refactor the vote variable to newVote 2021-08-28 22:54:43 -06:00
Oliver-Akins
527e7a2b37 Update the database schema to have a better quote structure 2021-08-28 22:53:34 -06:00
Oliver-Akins
3fc360054d Initial version of a proper README 2021-08-13 22:44:49 -06:00
Oliver-Akins
9c800680cc Add a template configuration 2021-08-13 22:44:34 -06:00
Oliver-Akins
58670ee12a Change the service description to not reference Resonym directly 2021-08-13 21:59:46 -06:00
Oliver-Akins
49c1b848b6 Add the ability to have the tie alert go to a thread of the quote bracket message 2021-08-01 02:25:17 -06:00
Oliver-Akins
d8df5caa76 Add accepted params for executing a webhook with 2021-08-01 02:24:26 -06:00
Oliver-Akins
f66404518f Update the per-guild config to have thread options 2021-08-01 02:20:02 -06:00
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