A lightweight easy-to-use minecraft chatbridge

Overview

Kyuta Bot - Minecraft ChatBridge

Kyuta is discord chat-bridge integration for minecraft based on the bedrock-protocol library and functions similarly to ! Pixel's BDScord. Simply put we are attaching a dummy client to the selected multiplayer server and using that dummy account to intercept incoming and outgoing packets to read them and transmit their data. While application such as BDScord have more server modding capibilities, Kyuta can be used on any server despite whether you have access to server files or not.

Commands - Usage

After installing the bot to get started all you simply have to do is run k!help to get a list of all the commands and how to use them. Here is a more detailed description of the useful commands:

  • Listen

    To iniate listening to a server run the command k!listen followed by the host, port, and version of the server you wish to connect to. A fully completed command will look like this: k!listen 127.0.0.1 19132 1.17.40 . No commas need to be added inbetween paramaters.

    Once listening to a server Kyuta will bridge all messages inbetween the discord channel and Mincraft. Using the prefix %runraw% before any minecraft command will run it ingame just as normal, for example sending the message %runraw%summon creeper 1 20 1, will summon a creeper at 1, 20, 1. (This works well in tandem with TrapDoor to be able to see farm rates / server performance without having to be ingame!)

  • Ping

    To ping a server simply run k!ping with the same paramaters as listen, except the version isnt needed. The ping command will return basic information about the queried server such as: the Header, Players Online, Max PLayers, Gamemode, Server ID, and Protocol

  • Register

    The Register command is an optional command that will register information on the user running the command to an internal database to personalize their webhooks. To use the command properly nickname yourself as your ingame name and run the command. Your nickname, username, highest role colour, and your profile picture will be stored to customize your webhooks and help people know who is who. These two pictures below demonstate this, the first is without registration and the second is with registration

    As you can see the webhook will change to be more personalized with the registration. Server Admins can also manually register user with the following syntax: k!register manual gamerTag discordName avatarURL hexColour.

  • ServerInfo

    Before using serverInfo you have to be listening to a server, once you are listening just run k!serverInfo to bring up and embed with important information on the server. If detailedInfo in config.json is set to true, more sensitve information will be displayed that could possibly cause issues if public.

Once you gave finished the setup you are ready to work! Here are a few extra tidbits i dont know where else to put:

  • Sadly there are no ways currently to send an image ingame so this will have to suffice

  • Replying is just translated like this so no one gets confused about who is speaking to who

  • Markdowns are translated both to discord and from discord, unfortunately underlining and strikethrough markdowns dont work on the minecraft side of the bridge because of this annoying bug. (Please upvote!)

  • Other basic features such as leaving, joining, and dying are all displayed aswell - commands are logged internally or can be output to the discord if "sendCommands" is set to true.

Installation

To start the instalation setup you can either download the latest release and unzip it, or clone the latest commit with git clone https://github.com/Sierrawastaken/Kyuta-bot.git, then cd into the directory (This might not be the most stable so i would recommend using the latest release). Then once inside the folder create a new file called config.json and create a new config file using this format - you dont have to copy the comments though as they will throw some errors.

{   
    // fill these values out with yours
    "token": "YOUR BOT TOKEN HERE",
    "webhook": "YOUR WEBHOOK LINK HERE",
    "botAv": "YOUR BOT AVATAR LINK HERE",
    "adminRoleId": "YOUR ADMIN ROL ID HERE",

    // you can change these whenever this is just the default
    "prefix": "k!",
    "runRawPrefix":"%runraw%",

    // if set to true DynamicListening will ask for a new host everytime
    // rather than using whats set in the config - useful if non-hosters are
    // setting up / using it
    "DynamicListening": true,
    
    // if set to true commands run will be output to the discord
    // through the webhook
    "sendCommands": true,

    // if set to true serverInfo will display more sensitive information
    "detailedInfo": true,

    // this will be used if DynamicListening is set to false
    // or if you enter no paramaters
    "host": "127.0.0.1",
    "port": 19132,
    "version": "1.17.40"
}

Once you have created your config file you can run your bot. First open up a terminal (make sure you are in the right directory) and run npm install. This will install all the required packages from the packages.json file. After thats finished installing you should be all ready to run the bot - simply run npm start to start it up. You should see the terminal log logged in as Kyuta or whatever you named your bot. Thats it! Its all set up, simply run k!help or read above to use it from there. You should also note the current releases randomize the ending of the chatbridge name (Kyuta37; Kyuta56), if you host a server with whitelisting it may be easier to have it not randomize the ending. To change that navigate to the serverConnect.js file (./remoteUses/serverConnect.js) and change the random constant to a number. (Its random for now so that several clients can connect at once without conflicts)

Made by Sierra#7079 with love :lovethat:

Join Auxo or Stratos if you need help with anything!

You might also like...

LazyLoad Embed YouTube Player - simple and lightweight plugin - pure JavaScript

LazyLoad Embed YouTube Player - simple and lightweight plugin - pure JavaScript

Youtube LazyLoad LazyLoad Embed Youtube Player - simple and lightweight plugin - pure JavaScript Status View Preview Table of contents Status Quick St

Nov 29, 2022

LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript

LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript

Vimeo LazyLoad LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript Status View Preview Table of contents Status Quick Start

Nov 3, 2022

A lightweight web component helper for HTML5 videos.

Video Radio Star A lightweight web component helper for HTML5 videos. Intended for use with muted by default HTML5 videos. Demo Demo out of viewport u

Dec 12, 2022

:musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser

ts-audio · ts-audio is an agnostic and easy-to-use library to work with the AudioContext API and create Playlists. Features Simple API that abstracts

Dec 25, 2022

An easy bot to create discord buttons easily.

Discord Buttons An easy bot to create discord buttons easily. Note: Node.js 16.6.0 or newer is required. Installation npm install You need to rename e

Aug 19, 2022

Action broadcaster for easy multiplayer web applications.

Hummingbird Action broadcaster for easy multiplayer web applications. About Hummingbird is both an open-source software and a public live service that

May 23, 2022

Easy and automatic updating way

Changes: ENTER Intents for client! const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MEMBE

Jul 16, 2022

A easy way for making bots using Discord.js/Node.js

Discord.js-Bot-Template This is a very simple template for making bots using Discord.js/Node.js Tutorial: To begin, Install Node.js here. After Node.J

Nov 8, 2022

Flexible and easy Dash/HLS/DRM integration for HTML5 video.

Flexible and easy Dash/HLS/DRM integration for HTML5 video.

This project is made possible with Plyr, Hls.js, Dash.js. Features 📑 HLS and DASH playback 🎥 Multi quality supported 🎬 Drm with custom header suppo

Nov 11, 2022
Releases(v1.2)
Owner
Sierrawastaken
Sierrawastaken
Simple Minecraft Guild Bridge Made Using TypeScript DiscordX and Mineflayer.

Create a discord bot with TypeScript and Decorators! Content Demo Installation Use global command only Use CommonJS Remove rest api server Demo CodeSa

null 2 Aug 10, 2022
A bot used for the PhaseSMP (Private Minecraft Survival Server)

PhaseSMP Bot This is a discord bot used on the PhaseSMP Discord Server (A private Minecraft survival server) Made with DiscordJS Required Packages: di

null 4 Nov 3, 2022
A lightweight, easy-to-use jQuery plugin for fluid width video embeds.

Introducing FitVids.js A lightweight, easy-to-use jQuery plugin for fluid width video embeds. FitVids automates the Intrinsic Ratio Method by Thierry

Dave Rupert 4.8k Dec 24, 2022
Easy and simple twitch bot in node.js.. very very easy..

How It Works identity: { username: 'YOUR BOTS USERNAME', <-- This is where you place the username that you gave the bot account password: '

Ventispurr 3 Dec 18, 2021
An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Tomato6966 17 Dec 11, 2022
Easy-to-use , actively maintained discord bot written in dJS V13 with customizable features

Multi-purpose discord bot Found a bug? Notes There are some modules missing, you can still start the bot but there are some things within the source t

locus 7 Nov 28, 2022
A simple and easy-to-use WhatsApp bot project based on Multi-Device Baileys and written in JavaScript

MIZUHARA ANIME THEMED FULL FLEDGED MULTI DEVICE WHATSAPP BOT WITH COOL FEATURES A Full Fledged MD Bot For Bot Lovers REQUIREMENTS • HOW TO INSTALL? •

Arus~Bots 18 Oct 25, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Springlink - ♨️ springlink, a lightweight, fast, highly customizable and stable lavalink wrapper for Node.js 🟩

SpringLink ♨️ A lightweight, fast and stable lavalink wrapper for Node.js Features ?? Stable Feature-rich Customizable Lightweight Installation ?? (No

Knyaoo 3 Nov 17, 2022
Lightweight customizable placeholders for third party content of your website (e.g. Youtube Videos) compatible with the Usercentrics CMP.

Usercentrics Widgets Lightweight customizable placeholders for third party content of your website (e.g. Youtube Videos) compatible with the Usercentr

Netresearch 3 Nov 17, 2022