1.1.1 • Published 4 years ago

pritudev v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

pritudev

Content

Installation

Make sure to install NodeJS beofre using any type of package.

After that open your Terminal and run below command.

npm i pritudev

Import

// If you use NodeJS
const pritu = require("pritudev");

// If you use ES6
import pritu from "pritudev";

Usage

Embed Pages (pagination)

Import the package

const pritu = require("pritudev");
const ReactionPages = pritu.ReactionPages;

Makeing Embed Pages

const { MessageEmbed } = require("discord.js");
const embed1 = new MessageEmbed().setTitle("1");
const embed2 = new MessageEmbed().setTitle("2");
const pages = [embed1, embed2];
const textPageChange = true;
const emojis = ["⏪", "⏩"];
const time = 30000;
ReactionPages(message, pages, textPageChange, emojis, time);

Preview

Embed Pages

prituDB

Import the package

// If you use NodeJS
const { prituDB } = require("pritudev");

// If you use ES6
import { prituDB } from "pritudev";

Establish and export the package

const db = new prituDB(client, {
  uri: "MONGODB CONNECTION STRING",
});

module.exports = db;

Example Usage

const db = require("./exampleDB.js"); // make sure to replace exampleDB.js with your prituDB.js file path.
db.set("pritudev is epic", "True");

Methods to use prituDB

.set()

// saves data to database
db.set("key", "value");

.get()

// gets value from key
db.get("key"); // returns => value

.has()

// returns boolean
db.has("key"); // returns => true

.delete()

// deletes data
db.delete("key");
// checking for data
db.has("key"); // returns => false

.collection()

console.log(pritudev.collection());

Support

Feel free to join our discord server for support Discord Server

Changelogs

New Update - 03/07/21 | Saturday.

  • Updated prituDB
  • Updated Guide
  • Added Embed Pagination

Contributing

Steps to contribute:

1. Fork the repo
2. Clone the repo git clone <your forked repo>
2. Make a new branch for your feature
3. Write the code
4. Make a new file called config.js in test folder and copy the contents of test/sample.6. config.js and update the token.
5. Run npm run build and npm run test
6. Push you code and make a pull request

That's it Thanks for contributing!

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago