/MapleDiscBot

"Universal" plug n play maplestory discord bot for your private server

Primary LanguageJavaScript

MapleDiscBot

"Universal" plug n play maplestory discord bot for your private server. Any questions or bug reports, my discord is Not Brandon#4444

I tried to make this maplestory discord bot as plug n play as possible but you are still going to need to some work. Note, I'm don't claim to be a good programmer and there might be some memes in here but it could help newer people and I think its time I released something :P

Make sure to use Visual Studio Code for any debugging or editing.

1. How to get a discord bot token?

  1. discordapp.com

  2. Developers tab at the top then select developer portal Discord Taskbar

  3. Top right click new Application, name it accordingly

Discord Application Button

  1. Now click on your new application you just created

  2. Select the Bot option on the left side of the screen

Discord Bot Option

  1. Top right click add bot

  2. Now you can see the token ID hidden, click copy and there you go you have your token ID

Token

2. How to set up the bot

  1. The first thing you want to fill out for it to work is config.json in the config Folder

config file

  1. YOU MUST FILL OUT ALL ASPECTS FOR IT TO WORK

  2. Starting with token, you want to put your bot token you just made into token area

  3. addRole: addRole is defaulted to false, if you put it to true make sure to put the role ID you want players who joins ur discord server to get.

  4. serverName: just put ur server name I.E.(whateverMS, nottakenMS)

  5. serverWebsite: insert your website URL.

  6. serverMascot : URL of a picture, you kinda need to fill this one out otherwise you will get errors

7.5: serverColor : the hexcode to a color that matches your server artwork.

  1. databaseName : your database name.

  2. databasePass : Password of your database I defaulted it to nothing, but that is where you wanna put your SQL password.

  3. databaseUser: defaulted to root, change if otherwise.

  4. databaseHost : again defaulted to localhost.

FINISH: If you matched all criterias(you probably won't), run the bot with start.bat and boom you should have a working bot (it will restart the bot if it crashes). It should look like this.

Console Bot

3. I get errors how to fix!1!!??

mysql error

Make sure to type "npm install mysql" in terminal of visual studio code.

badAPI error

Make sure to fill out the serverMascot section of config.json

!givedp !character doesn't work!

  1. Open the files in commands folder, and read the comments

  2. You want account[0].dpoint to match what your column name is in your SQL. I.E. (account[0].dpoints, account[0].dp, account[0].donationPoints)

dp

For the !givedp command similarly you want to change the dpoint column accordingly

  1. in the updateDp Variable change SET "dpoints" to whatever your donation points is called
  2. do the same for realcash. change it to rows[0].dpoints or whatever your column name is in SQL.

givedp

Extra: You can read through the source and change it to your liking, in info.js I removed the setURL() but you can easily reenable features to your liking.

Gallery

rankings

online