Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
/ evolvejs Public archive

EvolveJS - A Discord Library written in Typescript for Javascript and Typescript.

License

Notifications You must be signed in to change notification settings

Blazify/evolvejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


EvolveJS Logo

Discord Twitter License Downloads Dependencies


Status Banner

What is EvolveJS?

EvolveJS is a Discord Library in which bots can be made. We provide high control over the module so that the customizability can be the top of the level. Have fun with the library and happy coding :)

Node and Deno Support

Often times people ask node and deno are different in many ways so how can a library be present in both? Well in our case we have a simple script which just changes some of the internals of the library and pushed to the deno-master branch... Note: The Docs are valid for both node and deno as the user experience is same...

Installation

Node Usage

npm install @evolvejs/evolvejs

Deno Usage

  • Import from https://deno.land/x/evolvejs

Important

You need the following things before you can kick off with EvolveJS:

Node:

Deno

Documentation and Support

  • Official Docs Note :- The Docs aren't completed
  • For any further query and support join us at EvolveJS discord.

Basic Startup Guide

Example code for running the client

const { EvolveBuilder, GatewayIntents, CacheOptions } = require("@evolvejs/evolvejs")
const client = new EvolveBuilder()
                    .setToken("")
                    .setShards(2)
                    .enableIntents(GatewayIntent.GUILD)
                    .enableCache(CacheOptions.GUILD)
                    .build()

client.on("clientReady", () => {
  console.log(client.user.username) // logs the client's username when all shard is ready
})

client.sharder.on("shardSpawn", (id) => console.log(`${id} shard is now online`))
client.sharder.on("shardDestroy", (id) => console.log(`${id} shard is destryed`))

Incase of Deno use https://deno.land/x/evolvejs instead of @evolvejs/evolvejs

More Information

  • If you want to use ETF for Payloads Sending, just use EvolveBuilder#setEncoding, make sure to install erlpack, as it's a dev dependency of the package
  • If you want to contribute, you can star the repo or make pull request, but the pull request should be on the development branch, id you are adding anything from #4, just comment saying feature has been implemented

Author(s)

Contributor