{"id":22943703,"url":"https://github.com/slashedzer0/snarky-discord-bot","last_synced_at":"2026-04-13T17:32:18.205Z","repository":{"id":268117740,"uuid":"903223967","full_name":"slashedzer0/snarky-discord-bot","owner":"slashedzer0","description":"A snarky Discord bot that mocks target's messages, powered by Llama-3.1-8B-Instruct.","archived":false,"fork":false,"pushed_at":"2024-12-20T01:38:05.000Z","size":9658,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T22:29:54.157Z","etag":null,"topics":["discord-bot","github-actions","llama3","python","python-bot"],"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/slashedzer0.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-12-14T03:24:00.000Z","updated_at":"2025-07-29T07:28:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac7268cb-2de0-483f-abe3-b3298ce00142","html_url":"https://github.com/slashedzer0/snarky-discord-bot","commit_stats":null,"previous_names":["slashedzer0/snarky-discord-bot"],"tags_count":0,"template":false,"template_full_name":"github/codespaces-models","purl":"pkg:github/slashedzer0/snarky-discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashedzer0%2Fsnarky-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashedzer0%2Fsnarky-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashedzer0%2Fsnarky-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashedzer0%2Fsnarky-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashedzer0","download_url":"https://codeload.github.com/slashedzer0/snarky-discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashedzer0%2Fsnarky-discord-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762506,"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":["discord-bot","github-actions","llama3","python","python-bot"],"created_at":"2024-12-14T14:14:01.356Z","updated_at":"2026-04-13T17:32:18.189Z","avatar_url":"https://github.com/slashedzer0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 snarky-discord-bot\n\n## 🚀 Setup and Usage\n\nThis guide will walk you through setting up and using the Snarky Discord Bot, powered by Llama-3.1-8B-Instruct. You can run this bot locally, in GitHub Codespaces, or using GitHub Actions.\n\n### 📋 Prerequisites\n\n- Python 3.11 or later\n- A Discord bot token\n- GitHub Personal Access Token (PAT)\n- Azure AI Inference credentials\n\n### 🔑 Obtaining Required Secrets\n\n1. **DISCORD_TOKEN:**\n\n   - Go to the [Discord Developer Portal](https://discord.com/developers/applications).\n   - Click on \"New Application\" and provide a name for your bot.\n   - Navigate to the \"Bot\" section and click on \"Add Bot\".\n   - Copy the \"Token\". This is your `DISCORD_TOKEN`.\n\n2. **TARGET_USER_ID:**\n\n   - Open Discord and go to \"User Settings\".\n   - Under \"Advanced\", enable \"Developer Mode\".\n   - Right-click on the target user and select \"Copy ID\". This is your `TARGET_USER_ID`.\n\n3. **GH_ACCESS_TOKEN:**\n\n   - Go to [GitHub Settings](https://github.com/settings/tokens).\n   - Click on \"Generate new token (classic)\" and check none.\n   - Copy the generated token. This is your `GH_ACCESS_TOKEN`.\n\n### 💻 Local Setup\n\n1. **Clone the repository:**\n\n    ```sh\n    git clone https://github.com/slashedzer0/snarky-discord-bot.git\n    cd snarky-discord-bot\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. **Run the bot:**\n\n    Ensure you have the following environment variables set:\n\n    ```sh\n    export DISCORD_TOKEN=\"your_discord_bot_token\"\n    export TARGET_USER_ID=\"your_target_user_id\"\n    export GH_ACCESS_TOKEN=\"your_github_access_token\"\n    ```\n\n    Then run:\n\n    ```sh\n    python main.py\n    ```\n\n### 🌐 GitHub Codespaces Setup\n\n1. **Fork the repository:**\n\n    - Navigate to the [repository homepage](https://github.com/slashedzer0/snarky-discord-bot).\n    - Click the \"Fork\" button in the top right corner to create your own copy of the repository.\n\n2. **Create a Codespace:**\n\n    - Navigate to your forked repository homepage.\n    - Click the \"Code\" button and select \"Create codespace on main\".\n\n3. **Configure Environment Variables:**\n\n    - In the Codespace, create a `.env` file in the root directory.\n    - Add your environment variables to the `.env` file:\n\n      ```env\n      DISCORD_TOKEN=your_discord_bot_token\n      TARGET_USER_ID=your_target_user_id\n      GH_ACCESS_TOKEN=your_github_access_token\n      ```\n\n4. **Run the Bot:**\n\n    - Open a terminal in the Codespace.\n    - Run the bot:\n\n      ```sh\n      python main.py\n      ```\n\n### ⚙️ GitHub Actions Setup\n\n1. **Fork the repository:**\n\n    - Navigate to the [repository homepage](https://github.com/slashedzer0/snarky-discord-bot).\n    - Click the \"Fork\" button in the top right corner to create your own copy of the repository.\n\n2. **Configure Secrets:**\n\n    Go to your forked repository settings on GitHub and add the following secrets:\n\n    - `DISCORD_TOKEN`\n    - `TARGET_USER_ID`\n    - `GH_ACCESS_TOKEN`\n\n3. **Setup GitHub Actions Workflow:**\n\n    The repository includes a GitHub Actions workflow file [here](https://github.com/slashedzer0/snarky-discord-bot/blob/main/.github/workflows/bot.yml). You can adjust it to your liking.\n\n### 🐳 Development Container\n\nThe repository includes a development container configuration in `.devcontainer/devcontainer.json` for VS Code and GitHub Codespaces. This allows you to work in a consistent environment.\n\n### ⚡ Additional Configuration\n\nThe `.vscode/launch.json` file is configured to help you run and debug the bot using VS Code. Make sure to update the `envFile` path if necessary.\n\n```json\n{\n    \"configurations\": [\n        {\n            \"name\": \"Run Python Sample\",\n            \"program\": \"${file}\",\n            \"cwd\": \"${fileDirname}\",\n            \"envFile\": \"${workspaceFolder}/.env\",\n            \"redirectOutput\": false,\n            \"request\": \"launch\",\n            \"type\": \"debugpy\"\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashedzer0%2Fsnarky-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashedzer0%2Fsnarky-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashedzer0%2Fsnarky-discord-bot/lists"}