Package Exports
- @oxmc/welcomejs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@oxmc/welcomejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.