1712 Commits

Author SHA1 Message Date
SKINMAKER
f25fe50140
feat: retry webhook (#557)
* feat: retry webhook

* fix: check condition to disable immediately

* feat: start timeout from 2 squared

* fix: not return for 5xx status code

* chore: update docs

---------

Co-authored-by: Eunwoo Choi <choi@eunwoo.dev>
2023-04-23 19:00:43 +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
a3173609dd
fix: remove outdated webhook client (#555)
* fix: remove outdated webhook client

* feat: destroy client
2023-04-16 15:02:14 +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
SKINMAKER
72843bfeb1
fix: webhook failed since not working as intended (#550)
* fix: webhook failed since not working as intended

* fix: match to milliseconds
2023-04-07 22:34:39 +09:00
SKINMAKER
4648c3e84b
fix/webhook (#548)
* chore: remove quotes

* types: make servers nullable

* types: make before value nullable

* feat: handle null value

* chore: update api docs

---------

Co-authored-by: Eunwoo Choi <choi@eunwoo.dev>
2023-04-06 12:14:39 +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
Eunwoo Choi
7121097ed2
fix: put NEXT_PUBLIC_HCAPTCHA_SITEKEY on build (#546)
* fix: put NEXT_PUBLIC_HCAPTCHA_SITEKEY on build

* feat: update api docs
2023-03-23 14:13:35 +09:00
Eunwoo Choi
f80c073a38
fix: new og link (#545) 2023-03-22 22:39:33 +09:00
SKINMAKER
1ca415b8b4
feat: make deleted server able to get deleted (#544)
* feat: check invite expirable

* feat: check invite still available

* feat: check error code
2023-03-15 23:08:12 +09:00
SKINMAKER
1fe95bbed3
chore: set sitekey with .env (#539)
* chore: set sitekey with .env

* fix: typo

* chore: make variable public

* chore: add config to demo env
2023-03-12 22:27:58 +09:00
SKINMAKER
3e8aa26018
fix: bot / server card width (#537)
* fix: server card width

* fix: bot card width

* feat: set min width

* feat: adjust text size by screen

* feat: improve server card layout

* feat: improve bot card layout

* chore: remove unnecessary div
2023-02-19 21:10:54 +09:00
dependabot[bot]
1f64ae66d4
chore(deps): bump undici from 5.8.2 to 5.19.1 (#540)
Bumps [undici](https://github.com/nodejs/undici) from 5.8.2 to 5.19.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.8.2...v5.19.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 00:56:35 +09:00
SKINMAKER
ea3060c85f
fix: check bot strikes properly (#536) 2023-02-01 20:32:24 +09:00
SKINMAKER
3f5046b6c1
feat:show strikes (#535)
* feat: add line break to invalid category

* feat: show strikes

* fix: typo

* chore: wordings

* feat: specify three reasons excluded
2023-02-01 19:47:00 +09:00
Byungchul Kim
84eaaafde7
refactor: update footer (#534) 2023-02-01 01:34:58 +09:00
Eunwoo Choi
2d68f7aadd
deps: update outdated and critical dependencies (#532)
* deps: bump critical deps version

* chore: specify sentry and dd debug mode

* chore: enable SwcMinify

* chore: casing

* deps: bump mongoose version to 6.8.3

* Revert "deps: bump mongoose version to 6.8.3"

This reverts commit d5b90b5c0909545d4d21553d50c5681bd93a57a4.

* deps: change mongoose version to 5.13.15

* fix: typing

* deps: update audited deps

* deps: update next-pwa and dd-trace@2

* deps: update dd-trace@3 and sentry

* fix: redirects

* fix: style

* feat: redirect using next config

* deps: update mongoose to 6.9.0

* chore: change next version in package.json

* chore: change next version to 12.3.2

* fix: model compile issue

* chore: lint

* chore: remove any

* deps: update jest version to 29

* deps: resolve remaining vulnerabilities

---------

Co-authored-by: skinmaker1345 <me@skinmaker.dev>
2023-02-01 01:34:30 +09:00
SKINMAKER
5a28ac284c
fix: sort bots with date (#530) 2023-01-16 13:07:01 +09:00
SKINMAKER
ada3d928a0
fix: search (#531)
* fix: search

* chore: lint
2023-01-16 13:06:38 +09:00
Eunwoo Choi
50b435ef52
fix: change twemoji cdn (#528)
* fix: change twemoji cdn

* fix: typo
2023-01-14 22:16:53 +09:00
SKINMAKER
ad12c4d55d
feat: detect bots using http interactions (#515)
* feat: check if bot uses interactions over http

* chore: remove optional chainings

* fix: replace with falsy check

* chore: remove unnecessary operator

* fix: check flags properly
2023-01-14 22:16:34 +09:00
SKINMAKER
0dc1d99bda
fix: resolve issue with piping (#523) 2022-12-23 20:05:00 +09:00
SKINMAKER
5ec398056b
feat: add link to category page (#517)
* feat: add link to category page

* feat: add tip about categories
2022-10-24 00:06:13 +09:00
Taehyun Lim
c051b440d3
feat: edit wrong color code (#516) 2022-10-13 16:18:11 +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
85385e94aa
chore: update api docs (#513) 2022-08-27 22:35:12 +09:00
Ryu Juheon
79c31256ca
fix: fix overflow from bit calculation (#489)
* fix: fix overflow from bit caculation

* fix: fix typing issue

Co-authored-by: Byungchul Kim <64084503+chul0721@users.noreply.github.com>
2022-08-26 09:32:05 +09:00
Byungchul Kim
cf0bc9dc08
refactor: detact adblock (#509)
* refactor: detact adblock

* perf: implement mobile detection
2022-08-15 21:31:38 +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
Byungchul Kim
ca55dc8597
refactor: add more advertisements (#508) 2022-08-12 09:59:44 +09:00
Byungchul Kim
bd6af3380b
fix: fix bot url length (#504) 2022-08-06 10:42:32 +09:00
Byungchul Kim
8ea69fb4ae
fix: fix unapplied updates (#502) 2022-07-23 10:39:43 +09:00
Byungchul Kim
a808cf1d4f
fix: resolve add button bug (#500) 2022-07-16 00:15:21 +09:00
Byungchul Kim
f100c572c5
docs: update verification guide (#499)
* docs: update verification guide

* perf: refactor code

* refactor: remove intended changes
2022-06-22 00:09:26 +09:00
Byungchul Kim
d3af106af2
feat: improve navigation UX (#492)
* feat: improve navigation UX

* style: eslint format

* perf: change variable to value

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

Co-authored-by: Junseo Park <wonderlandpark@outlook.kr>
2022-06-21 23:59:26 +09:00
Byungchul Kim
9386796bf9
refactor: improve avatar design (#497) 2022-06-17 16:26:49 +09:00
Byungchul Kim
de74e15485
refactor: update footer (#498) 2022-06-16 16:41:50 +09:00
Byungchul Kim
696bbad813
refactor: change favicon to new logo (#496) 2022-06-12 23:10:24 +09:00
Byungchul Kim
fc32485d53
docs: update api docs (#493) 2022-05-15 22:49:42 +09:00
ByungChul Kim
9c7fc3807f
refactor: remove verification guide (#491)
* refactor: remove verification guide

* refactor: add disclosure guide
2022-04-10 17:12:20 +09:00
depfu[bot]
844ac8dae2
Update next to version 11.1.3 (#479) 2022-02-13 11:50:07 +09:00
f74f668e3e
Chore: improved bot review api (#484) 2022-02-13 11:49:17 +09:00
0593105fd5 chore: removed service worker 2022-01-08 21:27:33 +09:00
Junseo Park
9d6e2dc73f
typo: fixed typo issue 2021-11-19 22:49:24 +09:00
52247d0d3d chore: fixed description 2021-11-07 21:18:33 +09:00
457ad4701b chore: removed debug code 2021-11-07 00:30:03 +09:00
71d46ab239 Merge branch 'master' of https://github.com/koreanbots/core 2021-11-07 00:29:44 +09:00
7d15791e02 feat: changed website navbar name 2021-11-06 23:58:39 +09:00
Junseo Park
678fae4112
Feature/serverlist skeleton (#468)
* deps: added mongoose

* feat(*): added mongo and saving invited count

* chore(env): updated mongo configuration

* chore: updated next-env.d.ts

* chore(*): changed categories to botCategories

* chore(Image): maded image component

* feat(ServerCard): added ServerCard component

* feat(ServerIcon): added ServerIcon component

* feat(Tools): added server related functions

* feat(Mongo): added serverSchema

* chore(Hero): support serverlist

* feat(Owner): added crown

* feat(icons): added icons api

* feat(Yup): added AddServerSubmitSchema

* types: added server related types

* chore(BotCard): changed bot category link

* chore(Hero): changed category links

* feat(ServerCard): added unreachable state display

* feat(Yup): added ManageServerSchema

* feat(Query): added server related queries

* feat(Constants): added server related stuffs

* types: added updatedAt field for ServerData

* feat(pages/servers/*): added server pages

* feat(*): moved bot category rotue

* typo: fixed typo issue

* feat(pages/addserver/*): added add server page

* feat(api/servers): added server related api

* feat(pages/servers): added server edit page

* feat(pages/bots): changed bot list route

* feat(*): server categories

* feat(pages/users): added owned server list

* chore(pages/bots): changed image size

* feat(docker-compose): added bot

* ci: made some changes

* types: fixed type

* types(Search): fixed type

* types(*): fixed type

* fix(*): missing fields

* fix: Hero type typo issue

* ci(*): missing sentry org slug

* ci(*): fix

* feat(*): added and changed search pages

* Update pages/addserver/[id].tsx

Co-authored-by: Ryu JuHeon <saidbysolo@gmail.com>

* feat(api/search): added servers search api

* feat(pages/panel): added server list in manage page

* feat(Search): supporting server search at SearchBox

* feat(pages/apllications/servers): added server application page

* chore(docker-compose): changed image link

* chore(utils): removing server cache at submit

* chore(image/icons): added debug code

* chore(*): changed component names

* chore(Query): decreased server cache ttl

* fix(Query): error on addserver page

close: https://github.com/koreanbots/serverlist-testing/issues/10

* fix(Query): not using vote type

close: https://github.com/koreanbots/serverlist-testing/issues/9

* fix(Constants): fixed category unexpected char

close: https://github.com/koreanbots/serverlist-testing/issues/8

* fix(Query): serialize server data

* fix(Query): returning null on boost level 0

* fix(page/servers): displaying n/a on boostTier null

close: https://github.com/koreanbots/serverlist-testing/issues/4

* fix(pages/servers): hiding emoji list if no emoji

close: https://github.com/koreanbots/serverlist-testing/issues/1

* typo(pages/servers): bot to server

close: https://github.com/koreanbots/serverlist-testing/issues/2

* fix(components/Hero): editing vote list link

close: https://github.com/koreanbots/serverlist-testing/issues/11

* chore(*): changed list route

* feat(pages/servers/list/votes): added server vote list page

close: https://github.com/koreanbots/serverlist-testing/issues/12

* feat(Dockerfile): added pre-build

* fix(Image): image broken when fallbackSrc not given

close: https://github.com/koreanbots/serverlist-testing/issues/5

* ci: checking out submodules

* fix(ServerCard): bot category displayed at ServerCard

close: https://github.com/koreanbots/serverlist-testing/issues/16

* feat(*): supporting opengraph image for server

* fix(utils/Constants): fixed type missing on og

* feat(pages/servers): not forcing emoji width

* chore(utils/Yup): fixed agree checkbox error message

* typo(utils/Yup): fixed bot to server

* feat(pages/servers): improved emoji display

* chore(api/images/discord/icons): removed debug code

* chore(pages/servers): removed crown for owner

close: https://github.com/koreanbots/serverlist-testing/issues/19

* fix(utils/Query): returning date as string

close: https://github.com/koreanbots/serverlist-testing/issues/23

* fix(ServerCard): changed manage link from bot manage link

* fix(ServerCard): same height for every card

* chore: removed debug code

* chore(pages/addserver): showing as invite for server kicked bot

* typo(*): fixed typo issues

* types: added nullable type

* feat(Navbar): added list menu

* chore: showing warning for server data not fetched

* chore: changed main page (combined bots and servers)

* typo(*): replace '한국 디스코드봇 리스트' with '한국 디스코드 리스트'

* chore: added Hero component combined state

* typo: changed name

* fix(Navbar): fix link href

* typo: fix about page for serverlist

* chore: decrease font size

* fix: server category tag link

* fix: bot category link

* feat: added server widget

* fix(ServerCard): fixed servername overflowing

* chore: forcing re-login when discord server data fetch fails

* fix: error causing on owner not registered

* fix: making state same for join button

* fix: filtering owner if null

* fix(servers/[id]): fix error causing if owner is null

* fix(addserver): fixed error occuring for users not logged in

* fix(Constant): fixed og image extension getting popped

* typo: fixed typo issue

* fix: showing forbidden page for non-owner users

* feat: invite guide for server which bot left

* fix: invalid path for paginator on bot page

Co-authored-by: Hajin Lim <zero734kr@gmail.com>
Co-authored-by: Ryu JuHeon <saidbysolo@gmail.com>
2021-11-06 23:57:46 +09:00