GithubHelp home page GithubHelp logo

graingert / litebot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from idarklightning/litebot

0.0 2.0 0.0 541 KB

A discord minecraft bot with various utilities

License: MIT License

Python 100.00%

litebot's Introduction

LiteBot

LiteBot is a minecraft linking discord bot with other various utilities. It was created for the technical minecraft server LiteTech. If you would like to use it you can set it up by following the instructions below.

Installation

Firstly, ensure that you have Python 3.9, and pip installed.

Then install all the requirements with

python3.9 -m pip install -r requirements.txt

Then create a discord application here

Ensure that you have developer mode enabled on discord here

Configuring the Bot

RENAME ALL .TEMPLATE.JSON to .JSON

Within the server server.propertiesof your server(s) configure these properties:

  • broadcast-rcon-to-ops should be set to false in order to ensure the log files are not cluttered from bot usage
  • enable-rcon must be set to true
  • rcon.port set to a unique port (not same as server port)
  • rcon.password create a secure password

Within config.json configure the following properties ()

  • token your bot's token

  • prefix the prefix you would like to use when running commands

  • server_logo a direct link to your server's logo

  • members_role ID of the role that will be able to access the bot

  • operator_role ID of the role that will be able to execute commands on operator servers and create backups

  • main_guild_id ID of the main guild that the bot will be used in

  • api_server Configuration for the API Webserver

    • secret The secret with which the JWT tokens will be signed. Reccomended to use client secret
    • port The port that the server will run on, 8000 by default
  • servers Array of the configuration of all servers. You can add as many as you would like. If you are not comfortable with the JSON Structure you can read about it here:

    • name the name of the server, will be used for commands
    • server_ip server IP in format ip:port
    • server_ip_numerical server IP without any ports
    • server_rcon_port the RCON port you set in your server.properties
    • server_rcon_password the RCON password you set in your server.properties
    • operator set to either True or False depending on whether operator role is required to execute commands on this server
    • bridge_channel_id if you are using LiteTech Additions, set this to the same bridge channel ID you used there, otherwise leave it at 1
    • backup_directory path to the directory where backups will be stored
    • world_directory path to the server's world directory

Module Configurations

After you first run the bot, the modules_config.json will be generated with all the configurations you need to fill in for these modules. In order to use any of these modules, simple change the enabled to true and fill in the config if applicable. After you run the bot with the extension enabled, a list of all the available cogs will be added to the module's config. You can then switch any of these cogs to false in order to prevent them loading. You must restart the bot for these changes to take effect

Maintaining the bot

In order to disable an entire module, you can use the module command directly from discord. In order to disable you will have to use the module_config.json (for now)

Run

To start the bot, simply run the bot.py

If you require any help, feel free to contact me through the LiteTech discord server.

litebot's People

Contributors

idarklightning avatar

Watchers

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