Coder Social home page Coder Social logo

evilneed / discord-welcome-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from udin-kun/discord-welcome-bot

0.0 0.0 0.0 259 KB

Creates an edited image for welcoming a new server member!

License: GNU General Public License v3.0

JavaScript 100.00%

discord-welcome-bot's Introduction

discord-welcome-bot

An easy to setup and easy to use Welcome System Bot for Discord.js with the package canvas

Installation | How to use the Bot

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

Usage - 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

Usage - config.json

  • "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": ["",""]
}

NOTE:

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

SUPPORT ME

discord-welcome-bot's People

Contributors

nxvvvv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.