{"id":30654052,"url":"https://github.com/tomhuel/taobot","last_synced_at":"2026-05-20T07:02:29.470Z","repository":{"id":181732104,"uuid":"666709334","full_name":"Tomhuel/TaoBot","owner":"Tomhuel","description":"My Own Discord Bot","archived":false,"fork":false,"pushed_at":"2024-06-06T15:25:36.000Z","size":133,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-07T19:18:54.193Z","etag":null,"topics":["bot","discord","project"],"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/Tomhuel.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":"2023-07-15T10:11:11.000Z","updated_at":"2024-08-26T13:53:48.000Z","dependencies_parsed_at":"2024-06-06T17:07:26.461Z","dependency_job_id":null,"html_url":"https://github.com/Tomhuel/TaoBot","commit_stats":null,"previous_names":["tomhuel/taobot","lukalakuka/taobot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tomhuel/TaoBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomhuel%2FTaoBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomhuel%2FTaoBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomhuel%2FTaoBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomhuel%2FTaoBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomhuel","download_url":"https://codeload.github.com/Tomhuel/TaoBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomhuel%2FTaoBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272953955,"owners_count":25021136,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","project"],"created_at":"2025-08-31T08:13:53.441Z","updated_at":"2026-05-20T07:02:29.405Z","avatar_url":"https://github.com/Tomhuel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n\n![Hu Tao Icon](https://cdn.discordapp.com/avatars/1129712001233465425/73a375aa04e79be6ef2c3a0a64cb80e7.webp?size=512)\n# TaoBot\n\nGreetings, adventurer! I am TaoBot, the master of the Wangsheng Funeral Parlor, the 77th generation of the Wangsheng Clan and the funniest Bot ever!\n\nTaoBot it's a Bot that [Tomhuel](https://github.com/Tomhuel) is using to try Discord API Functionalities.\n\n\u003c/div\u003e\n\n## How to invite?\n\nTo invite TaoBot just you have to click [here!](https://discord.com/api/oauth2/authorize?client_id=1129712001233465425\u0026permissions=8\u0026scope=bot)\n\n## Use\n\nThis bot is free, if you want to use my code for your own bot you are free to use it 😁\n\n## Documentation\n\n### CLI \n\nThis Bot has an special way to work with [Models](#models), so i did a little CLI to create easily Models:\n\n```bash\nnode tao new Model \u003cModel Name\u003e\n```\n\nAnd this bot, to import succesfully the Slash Commands, i store all the commands in a specific [folder](./src/app/Commands/CommandList/).\n\n```bash\nnode tao new Command \u003cCommand Name\u003e\n```\n\nAnyways you can always check with `help` command.\n\n```bash\nnode tao help\n```\n\n### Models\n\nIn this bot, Models have 3 folders:\n\n```bash\n. # Model Folder\n├── DataSources # DataSources for our Entity\n│   └── ModelDS.ts\n├── Entity # Entity Definition\n│   └── ModelEntity.ts\n├── index.ts # Barrel File\n└── Repositories # Repositories for our Entity\n    └── ModelRepository.ts\n```\n\n#### Entity\nWe use the Entity just to set the entity of the model.\n\nExample:\n```typescript\nexport class UserEntity {\n    protected name: string;\n    protected username: string;\n\n    constructor(name: string, username: string) {\n        this.name = name;\n        this.username = username;\n    }\n}\n```\n\n#### Repositories\nHere we gonna set the minimal functions that any datasource should have. For example: `getUsers` `saveUser` ...\n\nAnd we gonna use `RepositoryImplementation` as template to execute any DataSource.\n\nExample:\n```typescript\nimport { UserEntity } from '../Entity/UserEntity';\n\nexport abstract class UserRepository {\n    abstract getUsers(): UserEntity[];\n    abstract saveUser(user: UserEntity): Promise\u003cboolean\u003e;\n}\n\nexport class UserRepositoryImplementation implements UserRepository {\n\n    constructor(\n        readonly UserDataSource: UserRepository\n    );\n\n    getUsers(): UserEntity[] {\n        return this.UserDataSource.getUsers();\n    }\n\n    async saveUser(user: UserEntity): Promise\u003cboolean\u003e {\n        const res = await this.UserDataSource.saveUser(user);\n        return res;\n    }\n}\n```\n\n#### Datasource\nHere there will be all the logic needed to handle with any Data Source (Database, Local Files, HTTP Fetching, etc).\n\nExample:\n```typescript\n// Example reading and writing Local Files\nimport { UserEntity } from '../Entity/UserEntity';\nimport * as fs from 'node:fs';\n\nexport class UserFileSystemDS extends UserRepository {\n\n    private readonly userFilePath = 'my/path.txt';\n\n    getUsers(): UserEntity[] {\n        const users = fs.readFileSync(this.userFilePath).split('\\n').map((userText) =\u003e {\n            const user = JSON.parse(userText);\n            return new UserEntity(user.name, user.username);\n        });\n        return users;\n    }\n\n    async saveUser(user: UserEntity): Promise\u003cboolean\u003e {\n        try {\n            fs.appendFile(this.userFilePath, '\\n' + JSON.stringify(user), { encoding: 'utf-8' });\n            return true;\n        } catch (err) {\n            console.error(err.message);\n            return false;\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomhuel%2Ftaobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomhuel%2Ftaobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomhuel%2Ftaobot/lists"}