{"id":24829957,"url":"https://github.com/adityakumar41/discord-bot","last_synced_at":"2026-04-29T08:02:20.777Z","repository":{"id":244543222,"uuid":"815539334","full_name":"AdityaKumar41/Discord-Bot","owner":"AdityaKumar41","description":"This Discord bot provides a URL shortening service similar to bit.ly, allowing users to generate short URLs for any provided long URLs. It emphasizes data security and authentication, enabling users to track traffic statistics for the generated short URLs directly within Discord.","archived":false,"fork":false,"pushed_at":"2024-07-05T05:12:29.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T02:25:20.803Z","etag":null,"topics":["bots","chatbot","discord","discord-bot","discordapp","url-shortener"],"latest_commit_sha":null,"homepage":"https://discord-bot-ten-iota.vercel.app","language":"JavaScript","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/AdityaKumar41.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}},"created_at":"2024-06-15T12:16:39.000Z","updated_at":"2025-01-15T11:52:55.000Z","dependencies_parsed_at":"2024-06-15T14:28:09.249Z","dependency_job_id":"3bfaa611-fe6b-4365-b201-da42a0cf70c3","html_url":"https://github.com/AdityaKumar41/Discord-Bot","commit_stats":null,"previous_names":["adityakumar41/discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdityaKumar41/Discord-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaKumar41%2FDiscord-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaKumar41%2FDiscord-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaKumar41%2FDiscord-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaKumar41%2FDiscord-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdityaKumar41","download_url":"https://codeload.github.com/AdityaKumar41/Discord-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdityaKumar41%2FDiscord-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bots","chatbot","discord","discord-bot","discordapp","url-shortener"],"created_at":"2025-01-30T23:40:00.620Z","updated_at":"2026-04-29T08:02:20.761Z","avatar_url":"https://github.com/AdityaKumar41.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Short URL Discord Bot\n\n\u003cimg src=\"./public/coverimage.png\" alt=\"Short URL Discord Bot\" style=\"width: 100%;\"\u003e\n\n## Description\n\nThis Discord bot provides a URL shortening service similar to bit.ly, allowing users to generate short URLs for any provided long URLs. It emphasizes data security and authentication, enabling users to track traffic statistics for the generated short URLs directly within Discord. This bot serves as a comprehensive alternative to platforms like bit.ly for URL shortening needs within a Discord server environment.\n\n````markdown\n## Features\n\n- **URL Shortening:** Generates short URLs from user-provided long URLs.\n- **Traffic Analytics:** Provides detailed traffic statistics for each generated short URL.\n- **Authentication:** Ensures data security and user authentication for accessing URL statistics.\n- **Discord Integration:** Seamlessly operates within Discord channels, allowing users to interact directly with the bot.\n\n## Getting Started\n\nTo run the bot locally, use the following commands:\n\n```sh\nnpm run dev\nnpm start\n```\n````\n\nEnsure you have created a `.env` file with the following variables:\n\n```\nPORT=8000\nDISCORD_TOKEN=your_discord_bot_token_here\nCLIENT_ID=your_discord_client_id_here\nCLIENT_SECRET=your_discord_client_secret_here\nSECRET=your_secret_here\nDATABASE_URL=mongodb://localhost:27017/discorde\n```\n\nReplace `your_discord_bot_token_here`, `your_discord_client_id_here`, `your_discord_client_secret_here`, `your_secret_here` with your actual Discord bot token, client ID, client secret, and any secret key you are using respectively. Ensure that you have MongoDB running locally or provide the appropriate URL for your MongoDB instance.\n\n## Usage\n\n1. **Invite the bot to your Discord server.**\n2. **Authenticate with the bot:**\n   - Type `/url` in any channel where the bot is present.\n   - If it's your first time using the bot, it will prompt you to authenticate with Discord.\n3. **Shorten URLs:**\n   - After authentication, type `/url \u003clongURL\u003e` to shorten the provided long URL.\n4. **View Traffic Statistics:**\n   - Use `/stats \u003cshortURL\u003e` to display traffic statistics for a specific short URL.\n\n## Example Commands\n\n- `/url https://example.com` - Shortens the provided long URL.\n- `/stats abc123` - Displays traffic statistics for the short URL `abc123`.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit pull requests to contribute to the project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityakumar41%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityakumar41%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityakumar41%2Fdiscord-bot/lists"}