276 Commits

Author SHA1 Message Date
SKINMAKER
a89cb6d813
feat: 봇 / 서버 - 소유주 간 관계도 개선 (#659)
* feat: implement owners mapping table

* feat: add manual deploy

* fix: query by vanity does not work

* fix: do not fetch users on list queries

* fix: updating owners does not work properly

* fix: owner is not shown properly

* ci: remove branch input on manual publish

---------

Co-authored-by: Eunwoo Choi <choi@eunwoo.dev>
2024-10-20 00:28:17 +09:00
SKINMAKER
5649f91bc0
fix: typo from "컨텐츠" (#653) 2024-07-26 15:07:57 +09:00
SKINMAKER
05c802369b
feat: Add descriptions for bot categories (#650)
* feat: make select option show description

* feat: add category descriptions of bot
2024-07-21 10:15:16 +09:00
skinmaker1345
f9289dd6c7 fix: set totalpage based on type 2024-03-04 23:37:41 +09:00
skinmaker1345
ad90f8d699 perf: optimize search 2024-03-04 23:34:36 +09:00
skinmaker1345
e2368f4064 fix: prevent error thrown at build 2024-02-17 22:04:45 +09:00
SKINMAKER
657e853fba
chore: remove mentions on log (#638) 2023-11-29 22:18:03 +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
skinmaker1345
8c95cc4bb8 fix: check given param is not null 2023-09-30 23:06:51 +09:00
SKINMAKER
606f3cbc82
deps: update next.js to 13 (#627)
* deps: update next.js to 13

* chore: migrate to new Link component

* chore: remove future option from next.config

* chore: update react-select

* chore: enable hideSourceMaps on sentry

* chore: assert type as string

* chore: make placeholder and value absolute

* feat: set timeout for redirect

* chore: ignore ts error

* chore: add generics

* chore:

* chore: add ts comment

* feat: use dnd-kit instead of react-sortable-hoc

* fix: give absolute position to placeholder
2023-09-28 23:22:46 +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
Eunwoo Choi
b3bac55577
fix: don't show TokenExpiredError (#624)
* fix: don't show TokenExpiredError

* fix: use console.error instead of console.log
2023-08-27 22:34:04 +09:00
SKINMAKER
80ca0a7dee
deps: update discord.js version to 14.12 (#621)
* refactor: remove raw user fetch

* chore: set discord.js version to 14.12.0

* chore: bump discord.js to 14.12.1

---------

Co-authored-by: Eunwoo Choi <choi@eunwoo.dev>
2023-08-01 19:23:36 +09:00
SKINMAKER
50168f6cd3
feat: catch error when fetching user (#569) 2023-06-20 20:54:18 +09:00
SKINMAKER
bec6aa3554
chore: deps (#566)
* chore: remove zlib-sync

* chore: pin version of @types/react

* chore: remove next-session

* chore: update tailwind

* chore: update tailwind

* chore: update lint

* chore: remove abort-controller

* chore: regen lock file

* fix: remove transparent

* chore: set plugin to not mutate existing style
2023-06-20 12:59:42 +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
Eunwoo Choi
c5670e3f46
fix: unable to submit server 2023-06-05 22:16:06 +09:00
SKINMAKER
013b9b7183
feat: filter-servers (#564)
* chore: update query

* feat: filter outdated servers
2023-05-29 22:19:24 +09:00
SKINMAKER
90b98cbebe
fix: duplicated failed message (#559)
* fix: clear timeouts when disabled

* fix: check timeout maps

* fix: wrong link for panel
2023-04-29 12:27:31 +09:00
SKINMAKER
54eb24137c
fix: webhook retry interval shifted by 1 (#558)
* fix: webhook retry interval shifted by 1

* chore: update docs
2023-04-26 20:42:51 +09:00
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
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
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
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
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
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
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
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
bd6af3380b
fix: fix bot url length (#504) 2022-08-06 10:42:32 +09:00
f74f668e3e
Chore: improved bot review api (#484) 2022-02-13 11:49:17 +09:00
52247d0d3d chore: fixed description 2021-11-07 21:18:33 +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
Junseo Park
0759e35f2c
Fix things for next release (#447)
* feat: updated bot name

* fix: blocked bot shown

* chore: updated api-docs commit hash

* feat: showing build info

* fix: number not formatted

* feat: parsing image tag

* docs: updated issue template
2021-07-14 21:20:31 +09:00
Junseo Park
2ee7151a06
Improved Report and changed email address (#440)
* feat: added report page for bot

* feat: added report page for user

* feat: blocking user reporting self

* feat: changed emails

* refactor: changed category handler style
2021-07-04 12:23:23 +09:00
Junseo Park
084a90977a
Bug Fixes (#438)
* fix: invalid sql

* fix: fixed formatting number for null

close: #433

* chore: added more margin for ad

* typo: fixed typo issue
2021-07-04 01:03:16 +09:00
c8c9bf6ca6 feat: cors header 2021-07-02 22:50:46 +09:00
Junseo Park
f7aa6f8ad6
chore: changed some header 2021-06-07 17:26:52 +09:00
14490e22ac fix: prevent perm missing 2021-06-04 08:58:35 +09:00