{"id":13316275,"url":"https://github.com/mtzim/discord-bot","last_synced_at":"2025-03-10T22:32:56.544Z","repository":{"id":38050139,"uuid":"493454987","full_name":"mtzim/discord-bot","owner":"mtzim","description":"Simple Discord bot with a set of utility and moderation tools. Utilizes a MariaDB(SQL) Database. Available to use with Docker.","archived":false,"fork":false,"pushed_at":"2023-07-05T02:53:13.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-05T03:25:55.433Z","etag":null,"topics":["discord","discord-bot","discord-py","docker","mariadb","python","sql"],"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/mtzim.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}},"created_at":"2022-05-18T00:28:42.000Z","updated_at":"2022-06-13T19:24:35.000Z","dependencies_parsed_at":"2023-02-01T04:46:48.869Z","dependency_job_id":null,"html_url":"https://github.com/mtzim/discord-bot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzim%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzim%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzim%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzim%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtzim","download_url":"https://codeload.github.com/mtzim/discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242939420,"owners_count":20209874,"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":["discord","discord-bot","discord-py","docker","mariadb","python","sql"],"created_at":"2024-07-29T18:21:31.331Z","updated_at":"2025-03-10T22:32:56.530Z","avatar_url":"https://github.com/mtzim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-bot\n\n\u003ca href=\"https://github.com/psf/black\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" alt=\"Code Style: Black\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.python.org/downloads/\"\u003e\n    \u003cimg alt=\"Python Version\" src=\"https://img.shields.io/badge/python-3.10%2B-blue\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/Rapptz/discord.py/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/discord-py-blue.svg\" alt=\"discord.py\"\u003e\n\u003c/a\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n1. [About](#about)\n1. [Installation](#installation)\n1. [License](#license)\n\nCheck out the [discord.py Documentation](https://discordpy.readthedocs.io/en/latest/intro.html) for additional information if not using docker.\n\n## About\n\nA simple Discord bot with a set of utility and moderation tools.\n\n**Current Features:**\n\n- Slash commands\n- OpenAI GPT Chatbot Integration\n- Set your own prefix (Default: `?`)\n- Prune messages\n- Server Member count channel\n- JST timezone display\n- User avatar fetcher\n- User info fetcher\n- ...More to come\n\n## Installation\n\n### Dependencies\n\nInstall [Python 3.10](https://www.python.org/downloads/) or above if not using docker.\n\nInstall [MariaDB](https://mariadb.org/download/) version 10.6.x or above.\n\nConfigure MariaDB for [Remote Client Access](https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/) and/or [Local Client Access](https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-18-04).\n\nCreate a table in your database with the following schema:\n\n```\nCREATE TABLE IF NOT EXISTS guilds (id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL UNIQUE, guild_name TEXT NOT NULL, guild_id BIGINT NOT NULL UNIQUE, prefix TEXT NOT NULL DEFAULT '?', member_count_channel_id BIGINT)\n```\n\nIf you're using docker and need to access the database on localhost, consider adding `network_mode: \"host\"` to the `docker-compose.yml` file if you have trouble connecting to the database.\n\n### Docker\n\n1. Install [Docker](https://docs.docker.com/engine/install/) on your preferred operating system.\n1. Log into your [Discord](https://discord.com/) account and open the [Discord developer portal](https://discord.com/developers/docs/getting-started#configuring-a-bot).\n1. Create a [Bot account](https://discordpy.readthedocs.io/en/stable/discord.html).\n1. Clone this repository.\n1. Rename `.env.sample` to `.env` and add the information for your bot and database.\n\n**Run the following commands while inside the cloned repository to build and run a docker container with this code.**\n\n#### Linux\n\n```\nsudo docker compose build\n```\n\n```\nsudo docker compose up -d\n```\n\n#### Windows\n\n```\ndocker-compose build\n```\n\n```\ndocker-compose up -d\n```\n\n## License\n\nReleased under the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtzim%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtzim%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtzim%2Fdiscord-bot/lists"}