- node.js v.16
- discord.js v.13 (will be installed automatically after following step 2 in the Installation and Setup part)
-
Clone the project
git clone https://github.com/Pasitha/JKC-Discord-Bot.git
-
Install required dependencies defined by me, Pasitha, in the package.json file
npm install
-
Make sure your bot has Privileged Gateway Intents
-
Set your bot token (required) and minecraft account (optional if you want the commands in the minecraft-commands section to be usable) in the settings.json file (Note : Do not use the commands in the minecraft-commands section if you didn't put in your minecraft account information.)
{ "token": "TokenGoesHere", "prefix": "$", "ownerIDS": ["OwnerDiscordID", "Owner2DiscordID"], "version": "v.0.1.4", "lastrun": "xx/xx", "minecraftid": { "Pasitha": { "host": "192.168.1.33", "username": "[email protected]", "password": "thisisPasithapassword", "auth": "microsoft", "version": false, "port": 25565 } } }
-
Then, run the script. You can either use
npm start
or
node .
(Open a terminal/ command prompt/ etc. in the bot's folder, or you can make a run.bat file in the bot's folder and then, right-click the file select "Edit" and put in either
npm start
ornode .
)
- Migration
yarn start:migration
- Studio
yarn start:studio
- Update
node ./prisma/json2sql.js
- Help
$help
, the bot will send an embed showing all the commands this bot has.
- User Information
$info @user
, the bot will send an embed with the mentioned user's information.$info
, the bot will send an embed with the user's information.
- Jukucrush
$jkc
, the bot will send an embed with clickable buttons to Jukucrush Team's Official YouTube Channel, Facebook Page, and also this very GitHub repository.$jkc ดูไรดี
, the bot will send an embed with a link to a random video, made by Jukucrush Team's members.
- Minecraft Skin, Minecraft Head
$mcskin minecraftName
, the bot will send the player's minecraft skin back into the channel where the command is used. (Example :$mcskin Pasitha
, the bot will send Pasitha's current minecraft skin.)$mchead minecraftName
, the bot will send the player's minecraft head back into the channel where the command is used. (Example :$mchead Pasitha
, the bot will send Pasitha's current minecraft head.)
- My Account (Per-Server Data)
$account
, the bot will send an embed showing how much money you have in your account right now. (Base Amount : 100)
- Pay (Per-Server Data)
$pay @user amount
, the bot will transfer the money defined from the user who used the command to the user mentioned in the command.
- Query (FAQ)
$query
, the bot will send an embed, with clickable buttons, showing Jukucrush's FAQs.
- Random Number
$random
, the bot will randomize a number from 1 to 100$random definedNumber
, the bot will randomize a number from 1 to definedNumber$random number1 number2
, the bot will randomize a number from number1 to number2
- Poll
$vote question description choice1 choice2 choice3 ... choice10
, the bot will send an embed with clickable reactions to choose between options.
- Where Is? (Made especially for Jukucrush Junior SS.5's members)
$whereis locationName
, the bot will send an embed telling the coordinates of that place, both Overworld coordinates and Nether coordinates.$whereis
, the bot will send an embed showing all the valid location names.
- Position
Can only be used in the Jukucrush's Official Discord Server$position minecraftName
,$pos minecraftName
, the bot will send an embed showing the position of the player defined, minecraftName, in the Jukucrush Junior SS.5 server.$position
,$pos
, the bot will send an embed showing the position of the bot itself in the Jukucrush Junior SS.5 server.
- Online Players
Can only be used in the Jukucrush's Official Discord Server
$onlineplayer
,$list
, the bot will send an embed showing a list of online players in the Jukucrush Junior SS.5 server.
- Send to Jukucrush Junior
Can only be used in the Jukucrush's Official Discord Server, and only people with the roles
1. Jukucrush Member
2. Jukucrush Junior
3. Jukuboost
4. Moderator
can use this command.
$sendjr message
, the bot will send the message to the server, Jukucrush Junior SS.5.
- Calculate
$cal question
, The bot will calculate what you asked, question, and send the answer back into the in-game chat.
- Position
$position minecraftName
,$pos minecraftName
, the bot will send the position of the player defined, minecraftName, in the Jukucrush Junior SS.5 server, back into the in-game chat.
- Random Number
$random
, the bot will randomize a number from 1 to 100$random definedNumber
, the bot will randomize a number from 1 to definedNumber$random number1 number2
, the bot will randomize a number from number1 to number2
- Send to Jukucrush's Official Discord Server
$sendjkc message
, the bot will send the message to the Discord server, it is used by the Jukucrush Junior Members and Jukucrush Members in order to reply to someone who sent message(s) from the Discord server.
- YouTube Notifications
- The bot will check the feed of the YouTube channels if they have uploaded a video, started a livestream, etc. or not YouTube channels are defined in jkc.json
- Birthday Notifications (Jukucrush Members' Birthday only)
- The bot will check whose birthday today is, and send a Happy Birthday message to the main chat in the Jukucrush's Discord server. Birthdays are defined in jkc.json