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 :)
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...
Node Usage
npm install @evolvejs/evolvejs
Deno Usage
- Import from
https://deno.land/x/evolvejs
You need the following things before you can kick off with EvolveJS:
Node:
Deno
- Official Docs Note :- The Docs aren't completed
- For any further query and support join us at EvolveJS discord.
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
- 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