{"id":19624816,"url":"https://github.com/coko7/tcb-opus","last_synced_at":"2026-04-13T18:02:15.926Z","repository":{"id":175272125,"uuid":"455597971","full_name":"coko7/tcb-opus","owner":"coko7","description":"🤖 A discord bot to get the latest manga chapters from TCB Scans as soon as they come out.","archived":false,"fork":false,"pushed_at":"2025-08-18T03:25:07.000Z","size":63,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-04T17:11:50.891Z","etag":null,"topics":["bot","discord","discord-bot","manga","manga-scraper","manga-tracker","nodejs","scans","scraping"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/coko7.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-02-04T15:27:29.000Z","updated_at":"2025-10-09T08:55:51.000Z","dependencies_parsed_at":"2025-02-26T19:56:50.155Z","dependency_job_id":null,"html_url":"https://github.com/coko7/tcb-opus","commit_stats":null,"previous_names":["coko7/tcb-opus"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/coko7/tcb-opus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coko7%2Ftcb-opus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coko7%2Ftcb-opus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coko7%2Ftcb-opus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coko7%2Ftcb-opus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coko7","download_url":"https://codeload.github.com/coko7/tcb-opus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coko7%2Ftcb-opus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","discord","discord-bot","manga","manga-scraper","manga-tracker","nodejs","scans","scraping"],"created_at":"2024-11-11T11:39:06.503Z","updated_at":"2026-04-13T18:02:15.911Z","avatar_url":"https://github.com/coko7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 tcb-opus\n\n`tcb-opus` is a Discord bot you can use to get the latest manga chapters from **TCBScans** as soon as they come out!\n\nTo work properly, you first need to configure one of the channels in your Discord server to follow updates from the `#releases` text channel on the official TCB Discord server. This will cause any message posted by the original TCB bot in the `#releases` channel to be forwarded to your own channel on your Discord server.\n\nOnce a message is forwarded to your Discord channel, `tcb-opus` will analyse it and determine to what manga it corresponds. Once a valid manga has been recognized, `tcb-opus` will attempt to fetch the URL of the latest chapter for that manga from TCBScans. It will then send a message containing the chapter URL to whatever channel you like on your Discord server.\n\n## 🧰 Requirements\n\nPlease make sure you have both [npm](https://www.npmjs.com/) and [Node.js](https://nodejs.org/) **v16.6+** installed otherwise this bot will not work.\nOnce you have cloned the repository, simply run `npm i` to install the required dependencies on your system.\n\n## ⚙️ Setup\n\n### Bot token and prefix\n\nFirst, you need to create a Discord application and bot on Discord [Developer Portal](https://discord.com/developers/applications).\nThen, create a file named `config.json` with the following content:\n\n```json\n{\n  \"token\": \"YOUR_BOT_TOKEN\",\n  \"prefix\": \"!\"\n}\n```\n\nReplace `YOUR_BOT_TOKEN` with the token of your bot.\n\n### OPUS configuration\n\nNow that `config.json` has been created, you need to configure the bot to listen for specific manga releases and notify users.\nTo do that, open the file [opus-config.json](./opus-config.json). It should have the following content by default:\n\n```json\n{\n  \"scanSite\": \"https://tcbscans.com/\",\n  \"fetchMode\": 2,\n  \"mangas\": [\n    {\n      \"name\": \"One Piece\",\n      \"active\": true,\n      \"notifyRole\": \"DISCORD_ROLE_ID\",\n      \"fromChannel\": \"TCB_LISTEN_CHANNEL_ID\",\n      \"toChannel\": \"OPUS_NOTIFY_CHANNEL_ID\",\n      \"autoCreateThread\": true\n    },\n    {\n      \"name\": \"Black Clover\",\n      \"active\": true,\n      \"notifyRole\": \"DISCORD_ROLE_ID\",\n      \"fromChannel\": \"TCB_LISTEN_CHANNEL_ID\",\n      \"toChannel\": \"OPUS_NOTIFY_CHANNEL_ID\",\n      \"autoCreateThread\": true\n    },\n    {\n      \"name\": \"Hunter X Hunter\",\n      \"regex\": \"H(unter)?(.?)X(.?)H(unter)?\",\n      \"active\": true,\n      \"notifyRole\": \"DISCORD_ROLE_ID\",\n      \"fromChannel\": \"TCB_LISTEN_CHANNEL_ID\",\n      \"toChannel\": \"OPUS_NOTIFY_CHANNEL_ID\",\n      \"autoCreateThread\": true\n    }\n  ]\n}\n```\n\nYou do not need to change `scanSite` as only TCB can be used right now. `fetchMode` will control how chapter data is fetched. Two modes are available:\n\n- **1:** The chapter number and direct URL will be fetched from TCB's Discord message\n- **2:** It is possible that TCB decides to stop posting direct links to the chapter for security reasons. In that case, you can setup `tcb-opus` to scrape the website and find the direct link and chapter number itself\n\nThe default configuration registers listen events for two mangas: **One Piece** and **Black Clover**.\nYou can register as many mangas as you want as long as the scans exist on the TCB website.\n\nManga attributes:\n\n- The `name` attribute of a manga is the most important as it is used to identify a manga on TCB. Make sure to get it right.\n- The `regex` attribute is optional and may be used when TCB uses other denominations for the manga in their Discord messages.\n- The `active` attribute can be used to disable notification for a specific manga without removing its configuration.\n- The `notifyRole` attribute will be used in the notification message to notify a specific Discord role. The value must be a valid Discord role ID on your Discord server. _This attribute is optional. If omitted, the notification message will not ping any role._\n- The `fromChannel` attribute is the Discord channel ID in which you receive TCB releases notifications.\n- The `toChannel` attribute is the Discord channel ID of the channel where you want OPUS notifications to be sent.\n- The `autoCreateThread` attribute is used to automatically create a thread to talk about a new chapter release. The thread will be attached to the `toChannel` channel. _This attribute is optional. If omitted, no thread will be created._\n\n## 🚀 Launching the bot\n\nOnce, you have installed the required packages and configured [config.json](config.json), you can launch the bot simply by typing:\n\n```\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoko7%2Ftcb-opus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoko7%2Ftcb-opus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoko7%2Ftcb-opus/lists"}