{"id":18715678,"url":"https://github.com/leandcesar/discord-bot","last_synced_at":"2025-07-19T03:34:28.491Z","repository":{"id":228677121,"uuid":"774604284","full_name":"leandcesar/discord-bot","owner":"leandcesar","description":"Simple Discord bot","archived":false,"fork":false,"pushed_at":"2025-04-25T22:21:07.000Z","size":227,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T23:23:15.720Z","etag":null,"topics":["bot","discord","disnake"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leandcesar.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":"2024-03-19T20:58:35.000Z","updated_at":"2025-04-25T22:21:11.000Z","dependencies_parsed_at":"2025-03-07T02:21:39.502Z","dependency_job_id":"945e4e82-2593-4d03-9937-f44ad9bed701","html_url":"https://github.com/leandcesar/discord-bot","commit_stats":null,"previous_names":["leandcesar/discord-bot"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/leandcesar/discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandcesar%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandcesar%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandcesar%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandcesar%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leandcesar","download_url":"https://codeload.github.com/leandcesar/discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandcesar%2Fdiscord-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265883682,"owners_count":23843792,"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","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":["bot","discord","disnake"],"created_at":"2024-11-07T13:09:31.243Z","updated_at":"2025-07-19T03:34:28.482Z","avatar_url":"https://github.com/leandcesar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003ediscord-bot\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://docs.python.org/3/\"\u003e\u003cimg src=\"https://img.shields.io/badge/python 3-3776AB.svg?style=\u0026logo=python\u0026logoColor=white\" alt=\"Python\" href=\"\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pre-commit.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/pre--commit-FAB040.svg?style=\u0026logo=pre-commit\u0026logoColor=black\" alt=\"precommit\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n______________________________________________________________________\n\n# Features\n\n## Commands\n\nSlash and prefix commands:\n- `/afk` (`+afk`): Let others know you're AFK (Away From Keyboard).\n- `/alias add` (`+alias`): Create a custom alias for quick reuse.\n- `/alias list` (`+aliases`): Display a list of your saved aliases.\n- `/alias remove` (`+unalias`): Remove a saved alias.\n- `/avatar` (`+avatar`): Display the specified member's avatar(s).\n- `/badge` (`+badge`): Change your badge (top role icon) on the server.\n- `/banner` (`+banner`): Display the specified member's banner.\n- `/color` (`+color`, `+cor`): Change your color (top role color) on the server.\n- `/emote add`: Add a custom emote to the server.\n- `/emote remove`: Remove a custom emote from the server.\n- `/emote rename`: Rename a custom emote in the server.\n- `/fake`: Send a message impersonating another user in the current channel.\n- `/remind` (`+remind`, `+remindme`): Set a reminder for yourself or others.\n- `/server` banner (`+serverbanner`): Display the guild's banner.\n- `/server` icon (`+servericon`, `+server`): Display the guild's icon.\n- `/snipe` (`+snipe`): Restore the last deleted message in the current channel.\n- `/sticker add`: Add a sticker to the server.\n- `/sticker remove`: Remove a sticker from the server.\n- `/sticker rename`: Rename a sticker in the server.\n- `/summarize` (`+summarize`, `+resumo`): Summarize the recent conversation in the chat.\n- `/weather` (`+weather`, `+w`, `+clima`): Retrieve the current weather for a specified city.\n\n## Listeners\n\nThese features run automatically, without user commands:\n- Automatically transcribes voice messages (speech-to-text).\n- Automatically downloads tracks from Spotify links.\n- Automatically fixes Twitter/X and Instagram link previews.\n- Automatically evaluates simple math expressions.\n\n# Getting Started\n\n## Prerequisites\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/)\n- [Bot account](https://docs.disnake.dev/en/stable/discord.html)\n\n## Installing\n\n1. Clone the repository using [Git](https://git-scm.com/).\n\n```sh\ngit clone git@github.com:leandcesar/discord-bot.git\n```\n\n2. Go to directory.\n\n```sh\ncd discord-bot\n```\n\n## Running\n\n3. Ensure to fill in the necessary environment variables in the `.env` file.\n1. Build the Docker service for the application.\n\n```sh\nmake build\n```\n\n5. Check if everything was installed correctly.\n\n```sh\nmake up\n```\n\n## Cleaning up\n\n6. Uninstall all Docker components.\n\n```sh\nmake down\n```\n\n# Contributing\n\n## Prerequisites\n\n- [Python 3.10 or higher](https://www.python.org/downloads/)\n- [Coroutines and Awaitables](https://docs.python.org/3/library/asyncio-task.html)\n\n## Development\n\n1. Create a [venv](https://docs.python.org/3/library/venv.html) and install dependencies with [pip](https://pip.pypa.io/en/stable/).\n\n```sh\nmake install\n```\n\n2. Create a new branch with a descriptive name.\n\n```sh\ngit checkout -b awesome-branch-name\n```\n\n3. Implement and add your code changes on this new branch.\n\n## Code Style\n\n4. Perform static code analysis with [ruff](https://beta.ruff.rs/docs/) and [mypy](https://mypy-lang.org/).\n\n```sh\nmake lint\n```\n\n5. Validate code security issues with [bandit](https://bandit.readthedocs.io/en/latest/).\n\n```sh\nmake security\n```\n\n6. Format the code according to defined standards with [black](https://black.readthedocs.io/en/stable/) and organize imports with [isort](https://pycqa.github.io/isort/).\n\n```sh\nmake format\n```\n\n## Contribute\n\n7. Commit your changes to your local branch using [Conventional Commit](https://www.conventionalcommits.org/en/) messages.\n\n```sh\ngit add .\ngit commit -m 'feat(scope): example message'\n```\n\n8. Push your changes to the remote [GitHub](https://github.com/) repository.\n\n```sh\ngit push origin awesome-branch-name\n```\n\n9. Create a Pull Request to the `main` branch.\n\n## Cleaning up\n\n10. Remove temporary files.\n\n```sh\nmake clean\n```\n\n11. Uninstall all dependencies.\n\n```sh\nmake uninstall\n```\n\n# References\n\n- [disnake](https://docs.disnake.dev/en/stable/): asynchronous Discord API wrapper for Python\n- [disnake-ext-plugins](https://github.com/DisnakeCommunity/disnake-ext-plugins): plugin extension for disnake providing a alternative to cogs\n- [AIOHTTP](https://docs.aiohttp.org/en/stable/): asynchronous HTTP Client/Server for Python\n- [Pillow (PIL Fork)](https://pillow.readthedocs.io/en/stable/): Python Imaging Library\n- [spotDL](https://spotdl.io/docs/): Spotify music downloader\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandcesar%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleandcesar%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandcesar%2Fdiscord-bot/lists"}