easly-discordjs
v1.6.5
Published
This is a good module to create a good bot in discord Js easly !
Readme
npm i easly-discordjs@latestconst { EasyClient, Status, Activity } = require("easly-discordjs"); //Load the part "easyClient" of the module
//Replace the "token" by your client token !
const client = new EasyClient("TOKEN", {
prefix: "p!",
status: Status.online,
activity: [
{
name: "m!help",
type: Activity.type.play
},
{
name: "{usersCount} users and {guildsCount} guilds",
type: Activity.type.watch
}
],
informations: true,
checkupdates: true, //It is recommended to activate it !
commands: true //If you want bot commands !
})
client.on("messageCreate", message => {
//If the user is a bot return nothing !
if(message.author.bot) return;
//Check if the message starts with the prefix !
if(!client.checkPrefix(message)) return;
//Lock the channel for everyone !
message.channel.lock(true, {message: "This channel has been locked :/"})
})