Commit graph

253 commits

Author SHA1 Message Date
Jack 877ce8e059 try catches to incrementing functions 2020-09-06 05:41:20 +01:00
Jack b6df7c22f2 trying to fix errors 2020-09-06 04:10:59 +01:00
Jack ee0d65c6fd tracking test duration and started tests 2020-09-04 21:07:36 +01:00
Jack a83fdee493 removed log 2020-08-25 02:19:25 +01:00
Jack 5c2588ee43 new recursive result validation 2020-08-25 02:18:01 +01:00
Jack 41dc4b52f8 showing patreon list in about 2020-08-23 23:27:21 +01:00
Jack 31c92f715f added result counting 2020-08-22 00:04:23 +01:00
Jack 2399fac316 moved leaderboard code into a transaction to avoid collisions 2020-08-21 23:13:24 +01:00
Jack 49952512e3 changed oncall to on request 2020-08-21 18:30:33 +01:00
Jack 0b08f536b3 converted two functions to onrequest 2020-08-21 18:25:30 +01:00
Jack b887d71a30 moving to node 10 2020-08-21 14:47:38 +01:00
Jack f91b4e86f6 fixed log broken 2020-08-21 01:41:41 +01:00
Jack 4c44ccec4a removed key data from log 2020-08-19 19:39:39 +01:00
Jack d1312af73f better validation 2020-08-19 14:29:08 +01:00
Jack 6e1a9b46b3 update 2020-08-18 22:08:09 +01:00
Jack a16435249b gave more memory to the generate code function, added cors 2020-08-18 18:13:55 +01:00
Jack ef243a96e1 hopefully fixed the cors/memory issue 2020-08-18 00:31:51 +01:00
Jack 0088a9347c removed log 2020-08-17 23:52:30 +01:00
Jack 5cf2ef2663 pbs now save raw and accuracy 2020-08-15 16:09:52 +01:00
Jack ba1fc7748d added play sound on error 2020-08-13 23:11:53 +01:00
Jack f64b8fc293 showing what went wrong with saving to the db 2020-08-13 22:06:14 +01:00
Jack 2e8077e2af bail out doesnt cause an error anymore, and can only work for long tests 2020-08-12 02:40:04 +01:00
Jack 1458abf378 actually using prettier now 2020-08-11 22:02:25 +01:00
Jack 82fd1bfd7a better logs 2020-08-11 15:16:19 +01:00
Jack aa38e7dca7 more backend validation 2020-08-10 03:41:19 +01:00
Jack 9ca5ca0703 completely rewrote filters 2020-08-09 19:52:00 +01:00
Jack 018000190c saving the amount of times a user won the daily lb 2020-08-08 21:14:12 +01:00
Jack 1c094e66f7 validation only checks if there is something to check 2020-08-08 20:37:23 +01:00
Jack d78e5a1794 added backend result validation 2020-08-08 20:35:28 +01:00
Jack 1cfb8bedac changed the max number of characters to 14 2020-07-26 15:20:49 +01:00
Jack 7f3acbb8f3 not giving role if not verified 2020-07-24 15:01:53 +01:00
Jack 0abea4f9d4
Merge pull request #201 from Miodec/dependabot/npm_and_yarn/functions/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19 in /functions
2020-07-23 13:12:36 +01:00
Jack b101400152 comment 2020-07-22 23:27:16 +01:00
Jack 676fa27891 more invalid usernames 2020-07-22 14:42:15 +01:00
Jack 7c2dca89c9 checking if user is verified before checking lb 2020-07-21 22:50:22 +01:00
dependabot[bot] 654f811b57
Bump lodash from 4.17.15 to 4.17.19 in /functions
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-21 00:05:16 +00:00
Jack 1d579a2ed7 showing full stats for time 15 and 60 2020-07-20 21:46:38 +01:00
Jack bdde779cd4 fixed a bug where new lb entries could not be adde 2020-07-20 21:43:44 +01:00
Jack bcf8d9344b fixed a bug that would not allow new entries to be inserted to the lb 2020-07-20 15:48:18 +01:00
Jack afaf599469 added keyspacing and duration to the db event
checkign if user needs to verify
added the ability to hide lb positions
2020-07-20 15:17:54 +01:00
Jack 6b8f3d8019 fixed a bug where new result tags could not be updated before refreshing the page 2020-07-18 00:04:53 +01:00
Jack 70066b170d added more info to the log 2020-07-17 23:55:45 +01:00
Jack 45fe7b86c4 added log 2020-07-14 17:13:10 +01:00
Jack 49266d4197 updated thresholds again 2020-07-14 01:33:12 +01:00
Jack 60df40ae96 lower 2020-07-14 01:25:03 +01:00
Jack 577ed53461 lowered threshold 2020-07-14 01:24:40 +01:00
Jack 2c90d9c282 removed key stats from the obj that is added to the db 2020-07-13 21:35:21 +01:00
Jack ae6d837e89 now announcing top 10 global results 2020-07-13 14:23:40 +01:00
Jack 2e91330224 fixed a bug where the website would say the result was not saved when the user got a pb in time 60 2020-07-12 16:10:02 +01:00
Jack dcd8a37d55 more logs 2020-07-12 16:08:31 +01:00
Jack be2b9d3d1a added error messages to return data 2020-07-12 14:37:26 +01:00
Jack 677702eee1 updated check if needs to check name function 2020-07-11 17:21:34 +01:00
Jack 865bfc3dea added daily lb announce 2020-07-11 10:53:04 +01:00
Jack bf050a8d6c fixed a bug where leaderboards would get cleared 2020-07-09 21:50:00 +01:00
Jack 9921688e7d fixed test completed not returning data 2020-07-09 20:01:16 +01:00
Jack a3129295bc typo 2020-07-09 18:32:54 +01:00
Jack ea43290ca0 fixed previous update 2020-07-09 18:31:25 +01:00
Jack 0ca2384695 only checking keypress stats if mode is time 2020-07-09 18:29:01 +01:00
Jack b109c9ec38 updated log 2020-07-09 17:58:00 +01:00
Jack d4cc081250 log update 2020-07-09 17:49:17 +01:00
Jack a7933f3528 better log 2020-07-09 17:44:39 +01:00
Jack e5816742c1 dont add to lb if cant verify keys 2020-07-09 17:01:40 +01:00
Jack 0b112a5dab lb live again 2020-07-09 16:52:37 +01:00
Jack ca033f6e9a fixed bug 2020-07-09 16:22:00 +01:00
Jack 684b764731 leaderboards off for now
added a check if cant verify key stats
tried a fix for name not saving on lb
2020-07-09 16:20:52 +01:00
Jack f7cd09deb4 added code to announce lb changes 2020-07-09 15:55:02 +01:00
Jack a2a8c01d95 Merge branch 'leaderboards' 2020-07-09 15:02:19 +01:00
Jack 99abbd7399 added function to announce lb updates in the future 2020-07-09 14:45:47 +01:00
Jack 7801089d91 moved the check to the bot 2020-07-09 12:14:00 +01:00
Jack 77401ebd2a added a log 2020-07-09 11:27:16 +01:00
Jack 4b480767eb made sure to round up the wpm that is sent to the role bot 2020-07-09 01:34:17 +01:00
Jack f31aa80102 fixed a bug that would cause the pb object to not be saved correctly 2020-07-08 16:32:22 +01:00
Jack 2d69b78ee2 initialising firebase once, limiting leaderboards to time 15 and 60 2020-07-08 00:14:03 +01:00
Jack 50c441bee5 missing null/undefined checks 2020-07-07 21:47:51 +01:00
Jack 0ec199ce03 missing = 2020-07-07 21:46:39 +01:00
Jack 3f3058e023 fixed bot not giving roles 2020-07-07 21:44:03 +01:00
Jack 7137c18371 removed logs 2020-07-07 21:12:24 +01:00
Jack 94ad2175df fixed the fix >:| 2020-07-07 20:42:26 +01:00
Jack 4925224b0f fix for a bug where the role would get overwritten 2020-07-07 20:30:39 +01:00
Jack c2bde75103 made sure not to send the command to the bot if the discordid is undefined 2020-07-07 19:28:09 +01:00
Jack 5e83f01e25 sending a command to the bot if the user got a pb 2020-07-07 16:39:10 +01:00
Jack f6fc41b8ed added a function to generate a discord pairing code 2020-07-07 13:50:24 +01:00
Jack 44f7dc1808 initialised firestore too early 2020-07-07 13:28:01 +01:00
Jack ffa4123648 making sure to initalise firestore once 2020-07-07 13:26:52 +01:00
Jack 6188191ac5 updated log 2020-07-06 22:53:03 +01:00
Jack 086bbc4f77 added a check if the user has correct name 2020-07-06 22:51:03 +01:00
Jack 29df39aa37 fixed result not saving for other modes 2020-07-06 22:28:04 +01:00
Jack 1eff3973a0 added verified and banned and anibot 2020-07-06 19:40:52 +01:00
Jack bf957f9215 changed timezone of cron task 2020-07-06 01:09:17 +01:00
Jack 340ed1e458 making sure to use utc 2020-07-05 17:56:16 +01:00
Jack 0f286d67d4 using utc for resettime 2020-07-05 17:27:18 +01:00
Jack 6433119764 leaderboards now reset at midnight UTC 2020-07-05 17:23:07 +01:00
Jack 524b8aa96b added a subtitle that says when the lb will reset 2020-07-05 17:02:02 +01:00
Jack fb696f6c04 lb reset now happens at 00:00 2020-07-05 16:38:08 +01:00
Jack ee98123772 fixed a bug where leaderboards would override eachother when going to history 2020-07-05 16:36:55 +01:00
Jack 678d4932df limiting leaderboards to english 2020-07-05 16:29:57 +01:00
Jack 1d5d30f6ad fixed a bug where newbest variable would not be true when it had to 2020-07-05 00:27:24 +01:00
Jack 7f82d85e5d fixed a bug where wrong pos would be shown 2020-07-04 16:43:48 +01:00
Jack 0ce1d34ddf updated check leaderboard to include info if the new result is best 2020-07-04 14:15:15 +01:00
Jack ec31fedec4 added some errors, fixed issue with doc id 2020-07-04 13:08:25 +01:00
Jack 48bb520795 made sure to return board info, and triple checking that the board is empty to not return uids 2020-07-04 02:44:08 +01:00
Jack b25abb2f24 added dynamic leaderboard creation 2020-07-04 01:39:29 +01:00
Jack 067744bbce removed more logs 2020-07-04 00:58:49 +01:00
Jack 90377b7906 updated log 2020-07-04 00:53:29 +01:00
Jack 0492d42ead removed throw 2020-07-04 00:51:32 +01:00
Jack 43dc325153 fixed console log 2020-07-04 00:51:09 +01:00
Jack 05442539f5 added some error logs 2020-07-04 00:32:45 +01:00
Jack 650f0c29b1 added a function to move daily leaderboards to history 2020-07-04 00:11:26 +01:00
Jack bf0249381e removed some logs 2020-07-03 23:41:42 +01:00
Jack 04f4eee886 made sure only one result per person can be on the leaderboard,
started daily leaderboards
2020-07-03 23:24:36 +01:00
Jack 0585a52b85 optimised name replacing 2020-07-03 22:09:29 +01:00
Jack 28eab5000a removed board logs 2020-07-03 20:14:39 +01:00
Jack ee2a5436d5 fixed rawwpm, removed logs 2020-07-03 20:10:22 +01:00
Jack 2b3eaf1696 added raw to the leaderboards 2020-07-03 19:29:48 +01:00
Jack 14c64ebadd Revert "added starting code for leaderboards", moved to a branch
This reverts commit 25d215f359.
2020-07-03 19:18:36 +01:00
Jack 25d215f359 added starting code for leaderboards 2020-07-03 19:15:46 +01:00
Jack 946392e077 added more logs to the backend 2020-07-03 17:10:09 +01:00
Jack 9b771f7de7 using Prettier code formatting 2020-07-03 01:35:45 +01:00
Jack f1973f71cf fixed linting errors 2020-07-02 20:28:39 +01:00
Jack 8047f38076 fixed some backend errors, added more logs 2020-07-02 20:14:38 +01:00
Jack 63d1e43e0b made sure to include the hashtag when checking if the config is valid 2020-07-02 19:19:56 +01:00
Jack d0a43e5e69 fixed bugs related to account creation and result saving 2020-06-28 15:27:52 +01:00
Jack fdc83326ec updated functions log 2020-06-28 14:48:03 +01:00
Jack 9607e88f25 updated function log 2020-06-28 14:45:46 +01:00
Jack 46fdd6da66 config is now saved to the database 2020-06-27 23:45:24 +01:00
Jack f7505cbd09 changed one of the errors to be more descriptive 2020-06-27 22:17:08 +01:00
Jack d0daa37cc4 dependencies 2020-06-24 21:14:11 +01:00
Jack 597b4c4305 added function to update result tags 2020-06-24 00:54:32 +01:00
Jack e4b468cc25 added a more descriptive error to the sign up form 2020-06-21 23:00:33 +01:00
Jack bb58452096 dependencies 2020-06-11 23:27:18 +01:00
Jack 475100b15e changed the name of the returned status 2020-06-11 22:57:48 +01:00
Jack 6eff1bdb34 added functions to edit and remove tags 2020-06-11 19:38:24 +01:00
Jack 1139cd34dc updated the return values of the cloud function 2020-06-11 19:19:27 +01:00
Jack 4301823354 missing return 2020-06-11 18:49:24 +01:00
Jack 2fa1b24f4c made sure to access the message key when showing firestore errors 2020-06-11 18:49:06 +01:00
Jack 2e6437d857 added a function to create tags 2020-06-11 18:48:15 +01:00
Jack c61c7ac157 made sure the backend verifies arrays 2020-06-11 18:40:02 +01:00
Jack a6ab03c1ad made sure to use === 2020-06-08 20:29:42 +01:00
Jack 735962e1be moved pb checking to the server 2020-06-08 02:24:24 +01:00
Jack 718ebfe8d2 made sure to only check the right databse when testing locally 2020-06-08 00:26:57 +01:00
Jack ed96e2f862 restructured cloud function 2020-06-07 23:52:45 +01:00
Jack 2c8c596aaf added one more error 2020-06-07 23:50:37 +01:00
Jack 3e3b8fbd64 moved test completion to the server to increase security 2020-06-07 23:43:01 +01:00
Jack 9bf149a491 reduced the amount of logs 2020-06-06 17:11:52 +01:00
Jack f34010b118 fixed lint errors 2020-06-06 16:51:01 +01:00
Jack df2653b225 added cloud functions for checking if name needs to be changed, validating name and changing name 2020-06-06 16:47:38 +01:00
Jack 1d9faa0216 updated cloud function 2020-06-06 13:24:05 +01:00
Jack ccf619da1f made sure functions use live db 2020-06-05 22:34:16 +01:00
Jack 8c90d8ed9b added missing returns and = signs 2020-06-05 19:06:00 +01:00
Jack 249dae1161 added cloud functions, moving to a new db design 2020-06-05 18:17:59 +01:00