55 Commits

Author SHA1 Message Date
SKINMAKER
160fe4ecb3
feat: 투표 알림 기능 (#669)
* feat: ensure djs clients are singleton instances

* feat: add votes table

* feat: vote notification

* chore: reduce vote cooldown to 15 min

* feat: add SetNotification to server

* chore: add debug logs

* fix: do not add notification when token and voteid already exists

* feat: add loading indicator

* feat: refresh notification when voted

* feat: add opt-out

* feat: add debug log

* fix: initialize firebase app

* fix: remove app on messaging

* feat: show notifications only with service worker

* fix: state improperly used

* fix: schedule notification if notification is newly added

* chore:  remove duplicated notification

* chore: add spacing

* chore: get token if notification is granted

* chore: change vote cooldown to 12 hours

* chore: remove logging
2025-02-17 07:34:12 +09:00
skinmaker1345
cf9e7ca770 refactor: include hash for discord cdn routing 2024-12-30 01:56:29 +09:00
SKINMAKER
18b6907f0b
perf: remove awaits from all internal logging (#656) 2024-09-17 21:36:20 +09:00
skinmaker1345
aaf82a9377 fix: remove cache on vote 2024-03-03 09:54:33 +09:00
SKINMAKER
b421d1ab64
chore: apply prettier (#637)
* chore: apply prettier

* chore: edit ready comment

* chore: move ts comment
2023-11-29 22:04:33 +09:00
Eunwoo Choi
8015784719
feat: use webhook for logging (#625)
* feat: use webhook for sending log

* fix: use property instead of hashmap

* fix: ci fail due to webhook URL validation

* chore: new url based on regex

* feat: send reports to webhook

* chore: env example
2023-08-31 23:19:16 +09:00
SKINMAKER
5d41ada703
feat: get display name on query (#565)
* feat: get display name on query

* chore: use global_name instead of display_name

* feat: show username on Owner

* chore: remove unused import

* feat: user page

* chore: remove logging

* feat: navbar

* feat: Seo

* feat: logging

* feat: addbot

* feat: security credit

* feat: report

* feat: transfer owner

* feat: seo

* feat: report

* chore: do not get channel from guild

* chore: remove displayname

* chore: remove unused import
2023-06-10 22:29:51 +09:00
SKINMAKER
468e1721b3
feat/refactor webhook payload (#556)
* feat: move ids into data prop

* feat: add timstamp on webhook payload
2023-04-16 15:57:49 +09:00
SKINMAKER
59dbf74466
refactor/webhook (#553)
* types: fix type of shortValue

* refactor: move webhook section to dev page

* feat: add tooltip

* refactor: remove warning prop for Label

* refactor: remove webhook field from edit page

* feat: check webhookStatus

* chore: remove unused import

* chore: remove ununsed import

* chore: remove unused import

* chore: add desc about failed webhook

* chore: remove unused import

* feat: remove warning icon when updated

* feat: add webhook field to server

* refactor: remove webhook verification

* fix: endpoint

* feat: add endpoint for /applications/servers/[id]

* feat: remove webhook related props from bot/server

* chore: edit url

* feat: add link to docs

* chore: remove indents
2023-04-14 23:57:43 +09:00
Eunwoo Choi
336300bd9a
fix: unable to edit if webhook is null (#551)
* fix: unable to edit if webhook is null

* fix: use null instead of true

* fix: equivalent bug in servers
2023-04-08 17:22:51 +09:00
Byungchul Kim
e8075ee7d5
feat: support webhook (#514)
* feat: support webhook

* feat: bot webhook

* types: add enums for webhook

* feat: update webhook status by param

* feat: send webhook of server count change

* feat: send webhook of vote

* chore: add desc of faulty webhook

* chore: set initial value

* feat: add collection of clients

* chore: simplify

* feat: set webhook status dynamically

* feat: webhook for discord

* refactor: rename WebhookStatus.Paused

* refactor: make webhookClients to one object

* feat: webhook with fetch

* feat: add warning prop to input component

* feat: display red when warning

* feat: check server count properly

* feat: handle status codes

* refactor: remove double fetch

* chore: typo

* feat: send failed message

* fix: missing id on query

* feat: limit response body

* feat: use severlist bot to dm

* feat: webhook for servers

* feat: use env for ids

* refactor: remove variables

* fix: send discord log

* fix: message

* feat: include koreanbots in footer

* fix: typo

* refactor: export function as non default

* feat: add verification

* feat: add columns

* feat: verify bot webhook

* feat: verify server webhook

* chore: rename key to secret

* fix: stringify

* chore: remove webhook related columns

* refactor: use separate object for webhook

* type: add webhook prop to bot / server

* fix: implement webhook status

* refactor: rename webhook to webhookURL

* feat: select webhook props

* feat: remove bot's private props

* feat: remove server private fields

* chore: use makeURLs

* type: fix faildSince is type as string

* refactor: rename to updateWebhook

* chore: make props optional

* feat: failedSince

* feat: remove failedSince when success

* fix: missing import

* fix: typo

* fix: convert missing prop

* fix: typo

* chore: remove unnecessary select

* fix: missing systax

* feat: sort docs

* feat: use relay

* fix: check status properly

* chore: handle relay server error

* remove awaits

* fix: add base url

* fix: typo

* chore: remove red highlights

* chore: change emoji

---------

Co-authored-by: SKINMAKER <skinmaker@SKINMAKERs-iMac.local>
Co-authored-by: skinmaker1345 <me@skinmaker.dev>
2023-04-03 12:03:41 +09:00
SKINMAKER
8694e9b19a
deps: change discord.js version to v14 (#503)
* deps: update djs to v14

* refactor: use discord.js v14

* fix: presence not showing properly

* fix: revert Ids

* Update pages/api/v2/bots/[id]/index.ts

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* style: apply code style

* feat: customizable intents

* feat: change node version

* feat: change node version

* fix: misused operator

* deps: fix typescript version to 4.6.4

* fix: fix bot url length (#504)

* refactor: add more advertisements (#508)

* feat: add open review deny log and max denies restriction (#510)

* feat: add open review log channel and embed

* chore: do not include submit page

* chore: mention instead of date

* feat: add max denies error

* typo: 더 이상

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* feat: add exceptions to deny count

* fix: invalid embed used

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: invalid guild

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: invalid position

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: proper reason check position

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* feat: sepcific error message

* refactor: change reason embed format

* fix: knex andWhereNot method to whereNotIn method

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* refactor: detact adblock (#509)

* refactor: detact adblock

* perf: implement mobile detection

* deps: update djs to v14

* refactor: use discord.js v14

* fix: presence not showing properly

* fix: revert Ids

* Update pages/api/v2/bots/[id]/index.ts

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* style: apply code style

* feat: customizable intents

* feat: change node version

* feat: change node version

* fix: misused operator

* deps: fix typescript version to 4.6.4

* refactor: use discord.js v14

* deps: update discord.js to 14.2.0

* style: split options

* style: prettify

* deps: update erlpack

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>
Co-authored-by: Byungchul Kim <64084503+chul0721@users.noreply.github.com>
Co-authored-by: Eunwoo Choi <61371424+eunwoo1104@users.noreply.github.com>
2022-08-30 23:28:48 +09:00
Eunwoo Choi
516f72ad08
feat: add open review deny log and max denies restriction (#510)
* feat: add open review log channel and embed

* chore: do not include submit page

* chore: mention instead of date

* feat: add max denies error

* typo: 더 이상

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* feat: add exceptions to deny count

* fix: invalid embed used

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: invalid guild

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: invalid position

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* fix: proper reason check position

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>

* feat: sepcific error message

* refactor: change reason embed format

* fix: knex andWhereNot method to whereNotIn method

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>
2022-08-15 21:22:55 +09:00
Junseo Park
c8708d8ad7
Added datadog metrix (#437)
* feat: tracing metrix for deny

* feat: added raw reason at tag

* fix(dd-trace): not using async function

* chore: removed tracer init and await

* feat: added datadog init file

* style(dd-trace): changed style

* fix(scripts): wrong path
2021-07-15 11:06:11 +09:00
22c8249a3c feat: added datadog metrix 2021-07-02 22:49:02 +09:00
67c961662b feat: added shards field at bot 2021-06-03 22:28:17 +09:00
78ccfffc33 feat: kicking bot on delete 2021-05-29 11:44:52 +09:00
00332f65f5 chore: improved server update logging 2021-05-29 10:38:44 +09:00
a174ff69d4 feat: added refresh data 2021-05-25 21:35:34 +09:00
1bdc5bcc82 fix: invalid avatar url 2021-05-22 22:35:43 +09:00
522cfc02c8 style: fix deepscan 2021-05-22 16:13:45 +09:00
007e5816d6 feat: improved logging 2021-05-21 09:43:33 +09:00
acd53e7c21 feat: added logging 2021-05-20 09:52:34 +09:00
7355df4714 fix: https://github.com/koreanbots/v2-testing/issues/104 2021-05-17 16:26:20 +09:00
8a5293e3f4 feat: added staff missing permission 2021-05-17 16:26:07 +09:00
63b43d2331 style: added space 2021-05-13 22:28:10 +09:00
5f98f594d2 chore: clearing cache for updates 2021-05-06 22:31:28 +09:00
4e979831f3 feat: added owner transfer and edit 2021-05-06 22:25:42 +09:00
3997cabff7
fix: missing querystring label 2021-05-05 22:29:13 +09:00
3f579fec4a
feat: added vote check endpoint 2021-05-05 21:24:22 +09:00
27750207a2
chore: delete bot real working
IMPORTANT: NOW DELETE BOT REAL WORKS!
2021-05-05 19:51:14 +09:00
05b92d1980
feat: added vote 2021-05-05 12:04:43 +09:00
cd7fa0d8b5
style: code style 2021-04-29 16:38:06 +09:00
wonderlandpark
4e1bff9b85 chore: added bot delete api 2021-04-09 15:30:25 +09:00
wonderlandpark
0a7edca2d8 feat: added captcha at addbot 2021-03-25 22:10:47 +09:00
wonderlandpark
8aeb52bd4a feat: handling by state 2021-03-25 16:14:47 +09:00
wonderlandpark
aefff0a349 feat: added ratelimit for bot patch and clearing cache 2021-03-25 15:55:13 +09:00
wonderlandpark
adf0133095 feat: added Manage bot page 2021-03-25 10:31:03 +09:00
wonderlandpark
f6f2a1e779 fix: ratelimit key gen 2021-03-14 10:24:30 +09:00
wonderlandpark
5963bcb0ce feat: added csrf 2021-03-13 18:48:11 +09:00
wonderlandpark
8bd6200461 fix: not skiping ratelimit 2021-03-12 13:25:18 +09:00
wonderlandpark
ac414b25bc feat: added report route 2021-03-12 13:16:20 +09:00
wonderlandpark
5fb9905917 feat: added global ratelimit header 2021-03-08 19:39:59 +09:00
wonderlandpark
82270b4f17 style: fixed eslint 2021-03-06 22:39:08 +09:00
wonderlandpark
c352e7428b chore: added servers update endpointg 2021-03-06 14:08:05 +09:00
899f948fa6 style: code style changes 2021-02-28 11:58:03 +09:00
9a36919657 fix: api requesthandler invalid usage 2021-02-28 11:29:18 +09:00
5b6a1ff072 feat: added RequestHandler 2021-02-27 15:37:10 +09:00
5281e4c1dd chore: removed debug code 2021-02-27 15:03:33 +09:00
73d92a6d5a chore: fix some code style 2021-02-22 22:26:53 +09:00