Giter Site home page Giter Site logo

teeraphatch15224 / jkc-discord-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pasitha/jkc-discord-bot

0.0 0.0 0.0 45.96 MB

Discord bot for Jukucrush's official discord server

Home Page: https://github.com/Pasitha/JKC-Discord-Bot

License: MIT License

JavaScript 100.00%

jkc-discord-bot's Introduction

jkc-logo
Jukucrush's Discord Server Jukucrush's Facebook fanpage Jukucrush's Youtube

JKC-Discord-Bot

Discord bot for Jukucrush's Official Discord Server

Project Requirements

  • node.js v.16
  • discord.js v.13 (will be installed automatically after following step 2 in the Installation and Setup part)

Installation and Setup

  1. Clone the project

    git clone https://github.com/Pasitha/JKC-Discord-Bot.git
  2. Install required dependencies defined by me, Pasitha, in the package.json file

    npm install
  3. Make sure your bot has Privileged Gateway Intents

  4. 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.)

    Example

    {
    	"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
    		}
    	}
    }
  5. 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 or node .)

Database Setup

  1. Migration
    • yarn start:migration
  2. Studio
    • yarn start:studio
  3. Update
    • node ./prisma/json2sql.js

Discord Commands

  1. Help
    • $help , the bot will send an embed showing all the commands this bot has.
  2. 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.
  3. 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.
  4. 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.)
  5. 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)
  6. 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.
  7. Query (FAQ)
    • $query, the bot will send an embed, with clickable buttons, showing Jukucrush's FAQs.
  8. 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
  9. Poll
    • $vote question description choice1 choice2 choice3 ... choice10, the bot will send an embed with clickable reactions to choose between options.
  10. 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.
  11. 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.
  12. 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.
  13. 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.

Minecraft Commands

  1. Calculate
    • $cal question, The bot will calculate what you asked, question, and send the answer back into the in-game chat.
  2. 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.
  3. 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
  4. 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.

Notification Features

  1. 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
  2. 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

Jukkyjung Fan Arts

jkc-discord-bot's People

Contributors

1turnkill avatar boon4681 avatar opecgame avatar pasitha avatar wynnkungz avatar xyzerkung 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.