{"id":25424416,"url":"https://github.com/weibeu/discorddb","last_synced_at":"2025-08-25T05:14:03.287Z","repository":{"id":57418375,"uuid":"191037222","full_name":"weibeu/DiscordDB","owner":"weibeu","description":"A simple database which uses a Discord channel to store data.","archived":false,"fork":false,"pushed_at":"2022-02-13T16:13:49.000Z","size":4755,"stargazers_count":24,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T10:55:23.648Z","etag":null,"topics":["database","discord","discord-channel"],"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/weibeu.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":"2019-06-09T17:45:18.000Z","updated_at":"2025-01-03T03:36:36.000Z","dependencies_parsed_at":"2022-09-13T13:14:57.937Z","dependency_job_id":null,"html_url":"https://github.com/weibeu/DiscordDB","commit_stats":null,"previous_names":["thec0sm0s/discorddb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeu%2FDiscordDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeu%2FDiscordDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeu%2FDiscordDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeu%2FDiscordDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weibeu","download_url":"https://codeload.github.com/weibeu/DiscordDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239207403,"owners_count":19599966,"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":["database","discord","discord-channel"],"created_at":"2025-02-16T23:16:08.383Z","updated_at":"2025-02-16T23:16:09.311Z","avatar_url":"https://github.com/weibeu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiscordDB\n[![Documentation Status](https://readthedocs.org/projects/discorddb/badge/?version=latest)](https://discorddb.readthedocs.io/en/latest/?badge=latest)\n\nA simple database which uses a Discord channel to store data.\n\n### Installation\nTo install current latest release you can use following command:\n```sh\npython3 -m pip install DiscordDB\n```\n\n\n### Basic Example\n```python\nfrom discordDB import DiscordDB\nfrom discord.ext import commands\n\n\nLOGS = []\nDATABASE_CHANNEL_ID = 399397622743564297\n\n\nclass MyBot(commands.Bot):\n\n    def __init__(self):\n        super().__init__(command_prefix=\"!\")\n        self.discordDB = DiscordDB(self, DATABASE_CHANNEL_ID)\n\n    @commands.command()\n    async def log(self, ctx, *, text):\n        data = {\n            \"name\": ctx.author,\n            \"text\": text\n        }\n        _id = await self.discordDB.set(data)\n        LOGS.append(_id)\n\n    @commands.command()\n    async def show_logs(self, ctx):\n        for _id in LOGS:\n            data = await self.discordDB.get(_id)\n            await ctx.send(f\"Name: {data.name}, Text: {data.text}\")\n\n\nbot = MyBot()\nbot.run(\"TOKEN\")\n```\n\n\n### Requirements\n* discord.py\n\n\n### Documentation\nHead over to [documentation] for full API reference. \n\n\n[documentation]: https://discorddb.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibeu%2Fdiscorddb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweibeu%2Fdiscorddb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibeu%2Fdiscorddb/lists"}