Install Command: npm i @imaentity/selfjs
View Documentation Here
Echo Bot:
const discord = require("@imaentity/SelfJS");
const client = new discord.Client();
(async function() {
await client.login("TOKEN");
client.onMessage(async function(msg) {
if(msg.author.bot || msg.author.self) return;
await client.sendMessage(msg.channel_id, msg.content);
});
}());