{"id":28898596,"url":"https://github.com/an4xdev/discord-todo-bot","last_synced_at":"2025-08-23T14:13:41.194Z","repository":{"id":298727199,"uuid":"1000893447","full_name":"an4xdev/discord-todo-bot","owner":"an4xdev","description":"Create simple todo list in channel, mark tasks as done, and clear tasks from channel.","archived":false,"fork":false,"pushed_at":"2025-06-19T17:16:41.000Z","size":354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T17:41:12.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/an4xdev.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,"zenodo":null}},"created_at":"2025-06-12T13:35:38.000Z","updated_at":"2025-06-19T17:16:44.000Z","dependencies_parsed_at":"2025-06-12T15:20:50.724Z","dependency_job_id":"d28684b3-0d9c-4e64-aeda-4c4558a6d20c","html_url":"https://github.com/an4xdev/discord-todo-bot","commit_stats":null,"previous_names":["an4xdev/discord-todo-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/an4xdev/discord-todo-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an4xdev%2Fdiscord-todo-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an4xdev%2Fdiscord-todo-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an4xdev%2Fdiscord-todo-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an4xdev%2Fdiscord-todo-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/an4xdev","download_url":"https://codeload.github.com/an4xdev/discord-todo-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an4xdev%2Fdiscord-todo-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271751925,"owners_count":24814707,"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-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2025-06-21T07:42:06.724Z","updated_at":"2025-08-23T14:13:41.187Z","avatar_url":"https://github.com/an4xdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple todo Discord bot\n\nCreate simple todo list in channel, mark tasks as done, and clear tasks from channel.\n\n## Why?\n\nI wanted to create a simple bot and practice Github Actions and deploying to VPS.\n\n## How to run\n\n1. **Create a Discord bot and get the token:**\n   - Go to [Discord Developer Portal](https://discord.com/developers/applications)\n   - Create a new application and bot\n   - Copy the bot token and client ID\n\n2. **Set up environment variables:**\n   - Rename `.env.example` to `.env` in the root directory\n   - Add your bot token and client ID:\n     ```\n     DISCORD_TOKEN=your_bot_token_here\n     CLIENT_ID=your_client_id_here\n     ```\n\n3. **Install Go dependencies:**\n   ```bash\n   go mod download\n   ```\n\n4. **Build the application:**\n   ```bash\n   go build -o discord-bot main.go\n   ```\n\n5. **Run the bot:**\n   ```bash\n   ./discord-bot\n   ```\n   The bot will automatically register commands on startup and begin listening for interactions in your Discord server.\n\n6. **Invite the bot to your server:**\n   - Use the OAuth2 URL generator in the Discord Developer Portal\n   - Select \"bot\" and \"applications.commands\" scopes\n   - Select necessary permissions (Send Messages, Use Slash Commands, etc.)\n\n7. **Use the commands in your Discord server:**\n   - `/todo add \u003ctask\u003e` - Add a new todo item\n   - `/todo list` - Show all todos for the current channel\n   - `/todo reset` - Remove all todos from the current channel\n\n\n## Production Deployment\n\nThe bot includes automatic deployment via GitHub Actions with systemd service management. See the CI/CD workflow for automated testing and deployment.\n\n## Database\n\nThe bot uses SQLite database (`todos.db`) which will be created automatically on first run. The database stores:\n- Todo items with completion status\n- Channel-specific todo lists\n- Message tracking for cleanup operations\n## Commands\n- `/todo add \u003ctask\u003e`: Add a new task to the todo list.\n- `/todo list`: List all tasks in the todo list.\n- `/todo reset`: Reset the todo list, removing all tasks.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4xdev%2Fdiscord-todo-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan4xdev%2Fdiscord-todo-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4xdev%2Fdiscord-todo-bot/lists"}