{"id":19594163,"url":"https://github.com/romtypo/db","last_synced_at":"2026-06-09T01:03:05.212Z","repository":{"id":143804133,"uuid":"128410471","full_name":"ROMTypo/db","owner":"ROMTypo","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-07T01:44:50.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T06:34:27.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ROMTypo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-06T15:08:20.000Z","updated_at":"2018-04-07T01:44:51.000Z","dependencies_parsed_at":"2023-05-28T06:30:13.108Z","dependency_job_id":null,"html_url":"https://github.com/ROMTypo/db","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"c83dd2f6954b8bf0f5f4ad462d6a3599efe2c98f"},"previous_names":["grantsommer/db"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROMTypo%2Fdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROMTypo%2Fdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROMTypo%2Fdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROMTypo%2Fdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ROMTypo","download_url":"https://codeload.github.com/ROMTypo/db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867750,"owners_count":19870469,"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":[],"created_at":"2024-11-11T08:42:26.728Z","updated_at":"2026-06-09T01:03:05.128Z","avatar_url":"https://github.com/ROMTypo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord DB\nDiscord Bot Database Manager\n\n## How To Use\n1. Require package\n```js\nvar DiscordDB=require(\"discord-db\");\n```\n2. Create database manager\n```js\nvar GuildConfig=new DiscordDB.GuildConfig(guild_id,{\"prefix\":\"!!\"});\n\nvar UserConfig=new DiscordDB.UserConfig(user_id,{\"prefix\":\"USER\u003e\"});\n\nvar GenericDatabase=new DiscordDB.Database(\"generic\",\"./data/\",{\"some\":\"data\"});\n//                                                   ^       Optional        ^\n```\n3. Set data\n```js\nGuildConfig.set(\"prefix\",\"??\");\n```\n4. Get data\n```js\nconsole.log(GuildConfig.get(\"prefix\"));\n```\n5. Save data\n```js\nGuildConfig.save();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromtypo%2Fdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromtypo%2Fdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromtypo%2Fdb/lists"}