ez-engine

EZ-Engine.js make the way to create Discords Bots with Javascript easy and simple!

Usage no npm install needed!

<script type="module">
  import ezEngine from 'https://cdn.skypack.dev/ez-engine';
</script>

README

Information

EZ-Engine.js makes the way to create Discords Bots with Javascript easy and simpel!

Installation

Open your terminal and install Ez-Engine.js

npm i ez-engine

Example

const Discord = require("discord.js"); //define Discord.js
const ezengine = require("ez-engine"); //define EZ-Engine.js
const Bot = new Discord.Client(); // Make a new Discord client
engine.engineClient(Bot); // create the EZ-Engine Client

Bot.login("Your bot token here"); //Replace "Your bot token here" with your bot token

Bot.on("message", function(message){ //the message event

   if(ezengine.isCommand("!help")){ // tests if the message is starting with !help
      ezengine.sendMessage("No help for you. :)"); //sends a message
   } 

})

Bot.on("ready",()=>{
   console.log("Bot started!") //log that the bot has started

   ezengine.changeStatus(["Hi", "Hello", "I'm online!",`Playing with ${bot.users.cache.size} users`], 5000) //make a changing status
})

Commands

  • ezengine.engineClient(client: Discord Client) | Creates the EZ-Engine Client

  • ezengine.isCommand(command: String) | Test if someone typed a specific command

  • ezengine.sendMessage(message: String, embed: boolean) | Sends a specific message as message or embed

  • ezengine.changeStatus(status: Array, changeTime: Number) | Gives your bot a changing status

A full documentation will be found here

License

ISC