discoreDB is a NoSQL database system built on top of the Discord API. It allows users to store and retrieve data in text format within Discord chat, providing a lightweight alternative to traditional database systems.
- Store structured data in Discord chat using text format.
- CRUD (Create, Read, Update, Delete) operations supported through Discord bot commands.
- Utilizes JSON format for data representation, ensuring easy parsing and human readability.
To get started with discoreDB, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/discoreDB.git
-
Install dependencies:
# If using npm npm install # If using yarn yarn install
-
Set up a Discord bot and obtain your bot token. You can follow the Discord API documentation to create a bot and obtain its token.
-
Configure the bot token in the
.env
file:DISCORD_TOKEN=your-bot-token
-
Run the bot:
# If using npm npm start # If using yarn yarn start
-
Once the bot is running, you can interact with it using Discord chat commands.
discoreDB currently supports the following commands: (more on the way)
!insert <data>
: Insert data into the database.!find <query>
: Find data matching the specified query.!update <query> <new-data>
: Update existing data in the database.!delete <query>
: Delete data from the database.
Here are some example commands and their usage:
- Insert data:
!insert {"name": "John", "age": 30}
- Find data:
!find {"name": "John"}
- Update data:
!update {"name": "John"} {"age": 35}
- Delete data:
!delete {"name": "John"}
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, feel free to open an issue or submit a pull request.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
This project is authored and maintained by HawkdotDev.