Awesome
MapleDiscBot
DEPRECATED PROJECT, THIS BOT WILL NO LONGER WORK DUE TO API CHANGES!
"Universal" plug and play MapleStory Discord bot for your private server.
If you have any questions or bug reports, my Discord ID 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.
Make sure to use Visual Studio Code for any debugging or editing.
1. How to get a discord bot token? <h2>
-
Visit the Discord Developer Portal
-
At the top right corner of the page, click on the
New Application
button, and fill in the appropriate details
-
Now click on your new application you just created
-
Select the Bot option on the left side of the screen
-
At the right under
Build-A-Bot
, click on theAdd Bot
button -
Under
Token
, click onClick to Reveal Token
. You can now see the hidden token ID; you may click on theCopy
button to have it added to your clipboard
2. How to set up the bot <h2>
- The first thing you want to fill out for it to work is
config.json
in the config Folder
-
YOU MUST FILL OUT ALL ASPECTS FOR IT TO WORK
-
Starting with token, you want to put your bot token you just made into token area
-
addRole
:addRole
defaults tofalse
. If you set it totrue
, make sure to fill out therole ID
that you want automatically assigned for newcomers to your Discord server. -
serverName
: Insert your server name (e.g. whateverMS, nottakenMS, SpiritMS, etc.) -
serverWebsite
: Insert your website URL. -
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.
-
databaseName
: Your database name. -
databasePass
: Password of your database. It is empty by default, but that is where you would set your SQL password. -
databaseUser
: Defaulted to root, change if otherwise. -
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.
3. I get errors how to fix!1!!?? <h2>
Make sure to type npm install mysql
in terminal of visual studio code.
Make sure to fill out the serverMascot
section of config.json
!givedp !character doesn't work!
-
Open the files in commands folder, and read the comments
-
You want
account[0].dpoint
to match the column name in your SQL. (e.g.account[0].dpoints
,account[0].dp
, oraccount[0].donationPoints
)
Similarly for the !givedp
command, you'd want to change the dpoint
column accordingly
- In the
updateDp
Variable changeSET "dpoints"
to whatever your donation points is called - Do the same for realcash. Change it to
rows[0].dpoints
or whatever your column name is in SQL.
Extra: You can read through the source code and change it to your liking, in info.js
I removed the setURL()
but you can easily reenable features to your liking.