An easy to setup and easy to use Welcome System Bot for Discord.js with the package canvas
1. Install node.js v12 or higher
2. Download this repo and unzip it | or git clone it
3. Install all of the packages with npm install
| the packages are npm install node.js discord.js canvas
3.1 Fill in everything in config.json
4. start the bot with node index.js
const Discord = require("discord.js"); //load the Discord.js Library
const client = new Discord.Client(); //make a new Client
const config = require("./config.json"); //load in all of the config files
client.on("ready", ()=>console.log("READY")); //log when the bot gets ready
const welcome = require("./welcome"); //load the transcript.js file
welcome(client); //call the transcript file with the client, the COMMAND, and the maximum of messages to fetch
client.login(config.TOKEN); //start the bot with the bot token
- "TOKEN" ... is your Bot token
- "CHANNEL_WELCOME" ... is the Channel ID of your welcome channel
- "ROLES_WELCOME" ... are all of the Role IDs you wanna add to the user when he joins the server, it must be an array and can be unlimited!
{
"TOKEN": "",
"CHANNEL_WELCOME": "",
"ROLES_WELCOME": ["",""]
}
You can edit the Welcome image, but make sure it is in the same layout or else it will mess up the placing, if you know how to code with canvas you can fix this if not i suggest you to not change the layout, and dont rename the image file
If you are having errors/problems with starting delete the package.json file and do, before you install the packages npm init
You can always Support me by inviting one of my own Discord Bots
BITTMAX Quality is their solution. Bittmax is our first and probably most important sponsor!
What they are offering:
Quality LXC & KVM (Root) Server Minecraft Hosting, as well as BungeeCord Network Hosting support Cheap and fast Domains WEBHOSTING DISCORD, TEAMSPEAK, Setups / Music Bots GAME SERVER, Rust, Gary's Mod, ..
Discord Server: https://discord.gg/GgjJZCyYKD
Website: https://bittmax.de/
GET 5% OFF EVERYTHING FOR EVER!
Code: x10
MC-Host24.de is selling the Best Digital Hosting Services ever! Like For games..
What they are offering:
Quality LXC & KVM (Root) Server WORLDS BEST Minecraft Hosting, Cheap and fast Domains WEBHOSTING DISCORD, TEAMSPEAK, Setups / Music Bots GAME SERVER, Rust, Gary's Mod, ..
Discord Server: https://discord.com/invite/4dGuGXK4A4
Website: mc-host24.de