DragonDev15 / reloaded

Another NodeJS Discord Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reloaded (W.I.P)

NOTE: Not Recommended For Production Yet

Reloaded, Another NodeJS Discord Library.


Installing Reloaded

To install Reloaded, please follow the next steps:

  • Create a new NodeJS Project.
  • Head to your package.json -> dependencies.
  • Put the following line inside the dependencies: "reloaded": "github:reloadedjs/reloaded#v0.0.1".
  • Run: npm install

Example:

{
  "name": "discordbot",
  "version": "1.0.0",
  "description": "Discord bot made with Reloaded",
  "main": "index.js",
  "scripts": {
    "test": "node index.js"
  },
  "author": "YourName",
  "license": "ISC",
  "dependencies": {
    "reloaded": "github:reloadedjs/reloaded#v0.0.1"
  }
}

Additional Note: If you want a Quick installation: npm i reloadedjs/reloaded#v0.0.1


Example

A Simple Ping Pong Command

const Reloaded = require("reloaded");
const client = new Reloaded.Client("TOKEN");

client.on("ready", () => {

    console.log(`${client.user.tag} Is Ready!`);

});

client.on("messageCreate", async (message) => {

    if (message.author.bot) return;

    if (message.content === "!ping") {

        client.sendMessage(message.channelID, "Pong!");

    }

});

client.connect();

About

Another NodeJS Discord Library.

License:MIT License


Languages

Language:JavaScript 100.0%