Commit graph

73 commits

Author SHA1 Message Date
Jack 82320266cd added api path override 2021-12-13 22:00:12 +00:00
Jack e7e5f08bb3 only sending bot command if result is recent 2021-11-20 19:45:13 +00:00
Jack 4372276169 only annoucing changes if timestamp is within 10 minutes 2021-11-20 18:19:47 +00:00
Jack cf8d258400
Quote submission (#1984)
* added new-quotes get and add routes

* added new-quotes/approve route to api

* Added front-end for quote submission

* fix language typo, force lowercase language

* Check for duplicate quote

* added unknown language handling to quote-submit

* npm i

* npm i

* language dropdown instead of input field

* mouse down instead click

* styling changes

* moved quotemod check to the controller,
added refuse endpoint,
added ability to approve and edit

* limiting quotes

* added log to quote approve

* added approve quotes button

* typo

* using the correct function, lowered limit

* added quote approve popup

* getting quotes and showing them

* error checking

* error checking

* removed console log

* stylng changes,
added refresh list button

* added disabled class

* styling changes

* handling button clicks
showing langauge and timestamp

* check if user is a quote mod

* approve button handling

* handling quote edit

* showing short quotes in red

* post, not get

* not parsing quote id to int

* parsing to objectid

* updated styling

* fixed lint warnings

* fixed up new quotes dao

* showing loader

* calling function correctly

* typo fix

* fixed wrong path,
fix broken newid,
saving file when file exists,
searching for the quote correctly when attempting to delete

* showing message

* blocking buttons and inputs when waiting for response,
unlocking after response

* deleted workflow

Co-authored-by: lukew3 <lukew25073@gmail.com>
2021-10-10 22:46:35 +01:00
Jack 4afa2f089f fixed debug cron 2021-09-14 14:54:35 +01:00
Jack e8d73a898d announcing lb updates 2021-09-14 14:54:03 +01:00
Jack adac26883a deleting old logs 2021-09-14 00:10:56 +01:00
Jack 5cd8619cb5 making sure uid makes it into the db error 2021-09-13 15:40:12 +01:00
Jack a4d8efad1a fixed errors not being able to be logged 2021-09-10 14:18:40 +01:00
Jack b814a7fe4f moved leaderboard update back a bit 2021-09-10 01:04:40 +01:00
Jack 9ca0a96d2d running leaderboard updates together 2021-09-10 00:50:47 +01:00
Jack 050e18dd3e updated log once more,
logging errors
2021-09-10 00:03:01 +01:00
Jack b3f2aa544c not checking leaderboards on test complete
updating test leaderboards every 5 minutes
2021-09-09 23:39:10 +01:00
Jack f83103727e Merge branch 'leaderboards' 2021-09-07 20:07:11 +01:00
Jack e7beb66543 changed leaderobards route 2021-09-06 17:35:03 +01:00
Jack ea32e158c5 updated maintenance message 2021-09-06 00:52:32 +01:00
Jack a05cd6f595 added maintenance mode 2021-09-06 00:52:05 +01:00
Jack 54c68e68bc init leaderboards branch 2021-09-05 23:57:07 +01:00
Jack e27ca6fcd6 added a psa system 2021-08-29 14:30:45 +01:00
Jack a5b431d55f trusting proxy 2021-08-27 21:52:49 +01:00
Jack 0cf93a6f00 quote rating api 2021-08-27 20:10:00 +01:00
Miodec 5ffd053d0a hopefully fixed error pointing to itself 2021-08-18 00:41:33 +01:00
Miodec 6f001ffc27 fixed error insert using wrong function 2021-08-18 00:33:14 +01:00
Miodec 5cfa792eb2 inserting monkey error into the database later to avoid recursive errors 2021-08-17 20:00:29 +01:00
Miodec 829a7bc10c reverted cors change 2021-08-16 18:01:52 +01:00
Miodec 85504136f5 cors update 2021-08-16 15:45:17 +01:00
Miodec 93998e2e49 test endpoint 2021-08-11 00:02:17 +01:00
Miodec 76fa65f03a fixed potential error when no decoded token is in the request 2021-07-13 15:11:38 +01:00
Miodec edd453bfef only logging to db when error is 500 and env is not dev 2021-07-09 21:18:50 +01:00
Miodec 60fcfe7f6b started converting presets to new system 2021-07-08 22:34:36 +01:00
Miodec 557f96c362 converted routes to plural 2021-07-08 22:22:18 +01:00
Miodec be75c9a3e5 updated error handling 2021-07-08 15:58:11 +01:00
Miodec 5fd1121d7b using monkey error 2021-07-08 12:30:06 +01:00
Miodec fe38ca296a converted result getting 2021-07-06 15:22:05 +01:00
Miodec 1222e576c0 added config route 2021-07-06 14:52:36 +01:00
Miodec 7d4759017c saving port to a variable 2021-06-16 00:47:34 +01:00
Miodec 8cb954dd88 renamed auth to user
moved one require up
2021-06-16 00:46:37 +01:00
Dharmaraj 29dfcd93d3 Optimized server.js 2021-06-14 12:19:23 +05:30
Miodec 7d2b6e1cac removed unused function 2021-06-10 16:49:45 +01:00
Miodec a46d2d17e7 divided code 2021-06-07 14:29:51 +01:00
Miodec 7c2bab730e moved functions 2021-06-07 14:16:07 +01:00
Miodec 9926c561ac moved some functions out of server into handler files 2021-06-07 13:52:06 +01:00
Dharmaraj 892de13dbe Moved bot endpoints to separate file 2021-06-07 12:37:15 +05:30
Dharmaraj 216c0637c1 Added MonkeyError class 2021-06-06 22:56:12 +05:30
Dharmaraj 4c560a437f Added Auth Router and DAO 2021-06-06 22:02:37 +05:30
Dharmaraj 3df8610735 Removed functions dir 2021-06-06 19:48:10 +05:30
lukew3 0a0fb2e12f added bot authorization with customToken 2021-06-05 16:02:34 -04:00
lukew3 3e794fd495 add bot api, no socket or auth 2021-06-04 19:41:16 -04:00
lukew3 d140ba2f63 Emptied cloudfunctions and functions/index.js, added stats collection 2021-06-03 22:45:30 -04:00
lukew3 047436311a added bot commands, dailyLbWins 2021-06-03 14:05:35 -04:00