GithubHelp home page GithubHelp logo

jesustrol's Introduction


RoControl


Not affiliated with Roblox Corporation

main dev

A simple Discord bot that connects to a Roblox game.

Requires discord.js v13, express, jimp, axios, and body-parser. HTTP must be enabled.

RoControl is not designed for usage in script builders. If you see RoControl running in a script builder, it is most likely with a custom loader and package.

License

RoControl is licensed under the GNU GPL v2 license. View it here.

Setup (New)

Press CTRL + SHIFT + B in Visual Studio Code (or run npx tsc), then create a config.json file. Run the ./server_out/index.js script using Node.js. Your config.json file should look like this:

{
    "token":"DEMO.TOKEN",
    "targetGuild":"957424000265506846",
	"serverCategory":"978438656664678410",
	"archiveCategory":"978517203018219561",
	"prefix":">",
	"role":"980692476769734666", // Optional
	"log_channel":"987183903485882408", // Optional
	"api-disable":[ // Add this field to block certain API endpoints from being run on the server
		"RunEval"
	],
	// Adding RunEval to api-disable will prevent ut.server:Eval() from being run. This is recommended. If you don't add this to api-disable, anyone who connects to your RoControl host server can run custom code.
}

Setup (Old)

Press CTRL + SHIFT + B in Visual Studio Code (or run npx tsc), then create a .env file, and set the TOKEN variable to your bot's token. Run the ./server_out/index.js script using Node.js. Also, in .env, make sure to include the target guild's ID, the category you want to display the active servers, an archive category, and the bot prefix. WARNING: The bot will automatically clear this category of all of its channels on startup. Please create a new category for RoControl. Your .env file should look like this:

TOKEN=DEMO.TOKEN
TARGET_GUILD=957424000265506846
CATEGORY=978438656664678410
ARCHIVE_CATEGORY=978517203018219561
RC_PFX=$

Hosting on Glitch

Import this project (in the TOOLS section), build the TS files, and then set the TOKEN .env variable. Also set the other variables listed above.

Optipost - Examples

Server

import { Optipost, OptipostSession } from "../optipost"

let opti = new Optipost()

opti.connection.then((connection:OptipostSession) => {
    console.log("Connection")
    connection.message.then((data) => {
        console.log(data)
        connection.Send(data)
    })
})

Client

local opti = require(script.Parent.opti)

local op = opti.new("http://127.0.0.1:3000/opti")

op.onopen:Connect(function()
	print("Open!")
	print(op.id)
	while task.wait(3) do
		print("Attempted sending")
		op:Send({Hello="World"})
	end
end)

op.onmessage:Connect(function(data)
	print(data)
end)

op:Open()

jesustrol's People

Contributors

nbitzz 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.