{"id":20498026,"url":"https://github.com/cozmycdev/discord-python-bot","last_synced_at":"2025-07-24T07:08:54.469Z","repository":{"id":243280444,"uuid":"811958686","full_name":"CozmycDev/discord-python-bot","owner":"CozmycDev","description":"Simple Discord bot example using Pycord","archived":false,"fork":false,"pushed_at":"2024-06-07T18:10:54.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T18:58:27.211Z","etag":null,"topics":["cogs","discord","pycord","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/CozmycDev.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":"2024-06-07T16:41:37.000Z","updated_at":"2024-11-21T08:45:55.000Z","dependencies_parsed_at":"2024-06-07T19:59:21.488Z","dependency_job_id":null,"html_url":"https://github.com/CozmycDev/discord-python-bot","commit_stats":null,"previous_names":["cozmycdev/discord-python-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CozmycDev/discord-python-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CozmycDev%2Fdiscord-python-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CozmycDev%2Fdiscord-python-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CozmycDev%2Fdiscord-python-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CozmycDev%2Fdiscord-python-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CozmycDev","download_url":"https://codeload.github.com/CozmycDev/discord-python-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CozmycDev%2Fdiscord-python-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807195,"owners_count":23987427,"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-07-24T02:00:09.469Z","response_time":99,"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":["cogs","discord","pycord","python"],"created_at":"2024-11-15T18:12:50.716Z","updated_at":"2025-07-24T07:08:54.448Z","avatar_url":"https://github.com/CozmycDev.png","language":"Python","readme":"# Simple Discord Bot\n\nThis is a simple example of a Discord bot implemented in Python using `dotenv-python` for managing sensitive keys, `py-cord` for interacting with the Discord API, and `cogwatch` for dynamic cog reloading. \n\nThis repo can be forked and modified to include unlimited capabilities and features; from complex view-flows, modals, MySQL, anything!\n\n## Features\n\n- Loads Discord token and other sensitive keys from a `.env` file.\n- Loads less sensitive configuration from `bot_config.json`\n- Implements a single slash command example, `/ping`\n- Utilizes `cogwatch` for hot-reloading modules in the `cogs` sub-directory.\n\n## Requirements\n\n- Python 3.8+\n- `dotenv-python`\n- `py-cord` (https://docs.pycord.dev/en/stable/api/index.html)\n- `cogwatch` (https://github.com/robertwayne/cogwatch)\n\n## Installation\n\n1. **Clone the repository:**\n\n    ```sh\n    git clone https://github.com/cozmycc/PythonDiscordBot.git\n    cd PythonDiscordBot\n    ```\n\n2. **Create and activate a virtual environment:**\n\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n3. **Install dependencies:**\n\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n4. **Set up your `.env` file:**\n\n    Create a file named `.env` in the root directory of your project, if it doesn't already exist, and add the following:\n\n    ```env\n    DISCORD_TOKEN=your_discord_token_here\n    ```\n\n## Usage\n\n1. **Run the bot:**\n\n    ```sh\n    python bot.py\n    ```\n\n2. **Interact with the bot:**\n\n    Use the slash command `/ping` in your Discord server where the bot is present to verify it is working.\n\n## Example Configuration\n\n### bot_config.json\n\n```json\n{\n  \"main\": {\n    \"version\": \"1.0.0\"\n  }\n}\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcozmycdev%2Fdiscord-python-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcozmycdev%2Fdiscord-python-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcozmycdev%2Fdiscord-python-bot/lists"}