1.0.2 • Published 3 years ago

edemarz v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Welcome to Edemarz API!

❔ Edemarz

A Simple API to configure and enhance the ways of coding your Discord Bot! Compatible with Discord.JS V.12 but it should also work on older versions. There is plenty of features!

I will add more feature as frequently as possible!

Features Coming Soon: EdemarzDB\ NPM


Installing

First install Node.JS Then:

$ npm install edemarz

🔧 Usages

  • DiscordClient - Initiate/Make your Discord Bot Online! The base of every function!
  • SetStatus - Sets the bot status!
  • createTextCommand - Create a command that replys with a text!
  • createEmbedCommand - Create a command that replys with an embed message!
  • createKickCommand - Create an Advanced Kick Command!
  • MongooseClient - Connect to MongoDB using Mongoose in a simplified way!

✈ Importing

//Using Node.JS `require()`
const EdemarzAPI = require("edemarz");
//Using ES6 Imports
import EdemarzAPI from "edemarz";

📔 Examples

Logging In

const EdemarzAPI = require("edemarz");
const DiscordClient = new EdemarzAPI.Client(
  "Text to log when the bot gets online!"
);

DiscordClient.login("very epic discord bot token here");
//Always keep the .login at the bottom of your code!

Properties: Token, ReadyText

Setting A Status

const EdemarzAPI = require("edemarz");
const DiscordClient = new EdemarzAPI.Client(
  "Text to log when the bot gets online!"
);

DiscordClient.setStatus("Very epic status here", "watching"); //Usage: <Status>, <Type (watching, playing, competing, listening, streaming)>

DiscordClient.login("very epic discord bot token here");
//Always keep the .login at the bottom of your code!

Properties: Status, Type

EdemarzDB (with mongoose)

Connecting to EdemarzDB

const EdemarzAPI = require("edemarz");
const EdemarzDB = new EdemarzAPI.EdemarzDB("mongodb connection string");

EdemarzDB.login();

My Socials

My Youtube\ Discord: Edemarz#8879