From 8b473742c758c1ba3fa0f5eea835b5cf8eeaf1da Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:25:00 +0300 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af65f7b..3be2ef0 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,14 @@ This was made for ClutterBot (still in development). # Docs ## `db.set(key: str, value)` Sets the key to the value in the JSON. +## `db.get(key: str, default=None)` +Returns the value of the key in the json, if the key isn't set in the json, it returns the default kwarg. +## `db.all()` +Returns all the JSON data. ## `db.rem(key: str)` Removes the key and value pair from the JSON. Note that this will not do anything if the key isn't set in the JSON. -## `db.get(key: str, default=None)` -Returns the value of the key in the json, if the key isn't set in the json, it returns the default kwarg. ## `db.nuke()` Deletes everything in the JSON.