{"id":24288606,"url":"https://github.com/ppodds/yuets","last_synced_at":"2025-10-31T22:05:13.182Z","repository":{"id":37001469,"uuid":"447643672","full_name":"ppodds/YueTS","owner":"ppodds","description":"A TypeScript rewrite version of Discord bot Yue.","archived":false,"fork":false,"pushed_at":"2024-10-29T14:18:51.000Z","size":32548,"stargazers_count":2,"open_issues_count":35,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T17:26:55.377Z","etag":null,"topics":["discord","discord-bot","discord-js","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppodds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-13T15:07:51.000Z","updated_at":"2024-08-03T10:24:47.000Z","dependencies_parsed_at":"2024-11-06T22:33:03.680Z","dependency_job_id":null,"html_url":"https://github.com/ppodds/YueTS","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodds%2FYueTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodds%2FYueTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodds%2FYueTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodds%2FYueTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppodds","download_url":"https://codeload.github.com/ppodds/YueTS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234184584,"owners_count":18792805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-js","typescript"],"created_at":"2025-01-16T10:20:01.311Z","updated_at":"2025-09-25T11:30:56.120Z","avatar_url":"https://github.com/ppodds.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YueTS\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7a9c92a6262142ea9711888e2e016d57)](https://www.codacy.com/gh/ppodds/YueTS/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ppodds/YueTS\u0026utm_campaign=Badge_Grade)\n\n## About\n\nThis is a TypeScript rewrite version of my Discord bot Yue. Yue was used in NCU CSIE Discord Server and World of Warships guild PTT NiceBoat. It made so much fun. But the library used by Yue is no longer in-maintance([detail](https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1)). In fact, the origin one which written by Python might not work properly in the near future, so I decide to write a new one with [discord.js](https://github.com/discordjs/discord.js/).\n\n## Installation\n\n### Clone The Repository\n\n```shell\ngit clone https://github.com/ppodds/YueTS.git\n```\n\n### Set Envirment variables\n\n```shell\n# copy the example env file\ncp .env.example .env\n# edit it\nvim .env\n```\n\nThe environments will be parsed to a config object, and it also allow you to assign a list of string like this\n\n```\nBOT__STATUS_LIST__0=a\nBOT__STATUS_LIST__1=list\nBOT__STATUS_LIST__2=of\nBOT__STATUS_LIST__3=status\n```\n\nThe parsed config object would be\n\n```js\n{\n    bot: {\n        statusList: [\"a\", \"list\", \"of\", \"status\"]\n    }\n}\n```\n\n#### Development\n\n```shell\npnpm i\npnpm build\npnpm dev\n```\n\n#### Deploy\n\n```\ndocker build --pull --rm -t yuets:latest \".\"\ndocker run -d -v $PWD/logs:/var/log/yue --network host --name yuets yuets:latest\n```\n\n## FAQ\n\n### Privileged Intent Error\n\n```\nPrivileged intent provided is not enabled or whitelisted.\n```\n\nTry to enable options below\n![Discord Bot Portal Intents](docs/intent.png)\n\n### Get an error when deploy commands\n\nIf you get the error below, check your `bot.json` set `clientId` and `token` properly.\n\n```\nDiscordAPIError[20012]: You are not authorized to perform this action on this application\n    at SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:198:23)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:99:20)\n    at async /app/deploy-commands.js:29:13 {\n  rawError: {\n    message: 'You are not authorized to perform this action on this application',\n    code: 20012\n  },\n  code: 20012,\n  status: 403,\n  method: 'put',\n  url: 'https://discord.com/api/v9/applications/??????????????????/commands'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppodds%2Fyuets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppodds%2Fyuets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppodds%2Fyuets/lists"}