{"id":28581379,"url":"https://github.com/underctrl-io/leveling-bot","last_synced_at":"2026-05-09T06:35:19.022Z","repository":{"id":296928473,"uuid":"982926055","full_name":"underctrl-io/leveling-bot","owner":"underctrl-io","description":"Leveling bot example built with commandkit v1","archived":false,"fork":false,"pushed_at":"2025-07-04T02:43:41.000Z","size":701,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T03:59:11.370Z","etag":null,"topics":["canvacord","commandkit","discordjs","leveling-bot","prisma","redis"],"latest_commit_sha":null,"homepage":"https://commandkit.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/underctrl-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-13T15:55:23.000Z","updated_at":"2025-09-14T04:33:04.000Z","dependencies_parsed_at":"2025-06-11T04:17:24.581Z","dependency_job_id":null,"html_url":"https://github.com/underctrl-io/leveling-bot","commit_stats":null,"previous_names":["underctrl-io/leveling-bot"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/underctrl-io/leveling-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underctrl-io%2Fleveling-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underctrl-io%2Fleveling-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underctrl-io%2Fleveling-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underctrl-io%2Fleveling-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/underctrl-io","download_url":"https://codeload.github.com/underctrl-io/leveling-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/underctrl-io%2Fleveling-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["canvacord","commandkit","discordjs","leveling-bot","prisma","redis"],"created_at":"2025-06-11T04:17:23.107Z","updated_at":"2026-05-09T06:35:19.010Z","avatar_url":"https://github.com/underctrl-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leveling Bot\n\n\u003e [!IMPORTANT]\n\u003e This repository has been archived in favor of [examples/with-leveling-system](https://github.com/underctrl-io/commandkit/tree/main/examples/with-leveling-system)\n\nLeveling Bot is a Discord bot for managing user levels and experience points (XP) in a Discord server. This bot is built with [discord.js](https://discord.js.org), using [CommandKit](https://commandkit.dev) framework.\n\n## Features\n\n- User leveling system based on messages\n- Rank card \u0026 Leaderboard card powered by [canvacord](https://canvacord.neplex.dev)\n- Redis powered caching with on-demand cache invalidation\n- Rate limiting to prevent spam\n- Hybrid commands (use interactions or message commands)\n- Customizable prefix for message commands\n- Multi-language support\n- Components v2\n- Analytics with [Umami](https://umami.is)\n\n## Tech Stack\n\n- Node.js\n- Discord.js\n- CommandKit\n- Redis\n- Prisma\n- TypeScript\n\n## Getting Started\n\nEnsure you have Node.js and npm installed. Clone the repository and install the dependencies:\n\n```bash\ngit clone https://github.com/underctrl-io/leveling-bot\ncd leveling-bot\nbun install\n```\n\n### Environment Variables\n\nCreate a `.env` file in the root directory and add the following variables:\n\n```env\n# The discord bot token\nDISCORD_TOKEN=\"xxx\"\n\n# Redis url\nREDIS_URL=\"redis://localhost:6379\"\n\n# Database url\nDATABASE_URL=\"postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public\"\n```\n\n### Running the Bot\n\n```bash\nbun dev\n```\n\n### Building the Bot\n\n```bash\nbun run build\n```\n\n### Running in Production\n\n```bash\nbun start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderctrl-io%2Fleveling-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funderctrl-io%2Fleveling-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderctrl-io%2Fleveling-bot/lists"}