1.1.7 • Published 4 years ago
@oxmc/welcomejs v1.1.7
Welcome.js
Info:
Welcome.js is a npm module for discord.js,
it allows users to make their bot welcome new users and add a role to that user.
Setup:
To add Welcome.js
to your bot download welcome.js
by running npm install @oxmc/welcomejs
,
after that edit your bot's main file. i.e(index.js Main.js)
add:
const welcome = require("@oxmc/welcomejs");
//welcome
client.on('ready', () =>{
client.user.setStatus('Online')
client.user.setActivity('yourprefix help', { type: 'PLAYING' })
console.log('Connected!')
console.log(`Logged in as ${client.user.tag}!`);
welcome(client);
})
or, if you already have a client.on('ready')
add:
const welcome = require("@oxmc/welcomejs");
welcome(client);
to it.