{"id":"doqedev/repldbservice","name":"repldbservice","scope":"doqedev","platform":"roblox","description":"Replit's datbase implementation in ROBLOX!","version":"0.2.2","latest":"0.2.2","versions":["0.1.0","0.2.0","0.2.1","0.2.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"6751761bf182d61675e26acc983fc655203204cad064118fc14e53d0eb298778","likes":0,"downloads":0,"install":"forest install doqedev/repldbservice","url":"https://forest.dev/p/roblox/doqedev/repldbservice","files":"https://api.forest.dev/ai/package/roblox/doqedev/repldbservice/files","readme":"![just the icon banner](rdbs.png)\r\n\r\nBased off of [FirebaseService](https://devforum.roblox.com/t/open-source-firebaseservice/296753)\r\n\r\nI really just made this so you can sync your Replit projects with your ROBLOX projects, which actually seems kinda useful for moderation bots. I've already tried using an express project for a mod panel and it works!\r\n\r\n# How to use\r\n\r\n* Open a [replit](https://replit.com/) project.\r\n* Go to the shell (wait for the Nix Environment to load)\r\n* Execute the command: `echo $REPLIT_DB_URL`\r\n* Click on the URL\r\n* Copy the tab's url\r\n* Put this into your script:\r\n```lua\r\nlocal RDBS = require(path.to.your.file)\r\nlocal db = RDBS.new(\"database url, keep this very secret!\")\r\n\r\n-- Examples\r\n\r\ndb:GetKey(\"messageoftheday\", true) -- returns \"HELLO REPL\"\r\ndb:GetKey(\"messageoftheday\") -- returns HELLO REPL\r\n\r\ndb:SetKey(\"messageoftheday\", \"testing!\") -- true (success?)\r\n\r\ndb:DeleteKey(\"messageoftheday\") -- true\r\n\r\n-- Multiple Keys\r\ndb:DeleteMultipleKeys({\"key1\", \"key2\"})\r\ndb:SetMultiple({[\"key1\"] = \"dog\", [\"key2\"] = \"cat\"})\r\n```\r\n\r\n# Installation\r\n\r\n## Wally\r\n\r\nPaste this into your wally.toml dependencies:\r\n\r\nNOTE: you dont need `[server-dependencies]` if you already have it, just put it at the bottom of the dependencies.\r\n\r\n```toml\r\n[server-dependencies]\r\n\r\nrepldbservice = \"doqedev/repldbservice@0.2.2\"\r\n\r\n```\r\n\r\nLearn more at [wally.run](https://wally.run)\r\n\r\n## ModuleScript\r\n\r\nCopy and paste [this module script](src/init.lua) into a new module script.\r\n\r\nOR\r\n\r\nGet this [asset](https://create.roblox.com/marketplace/asset/12789771846/ReplDBService) and put this in your game.","readmeTruncated":false}