GithubHelp home page GithubHelp logo

5l1v3r1 / yogi-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from triat/yogi-bot

0.0 1.0 0.0 353 KB

Bot Yogi is inspired by the famous eBot of @deStrO. The point of the bot is to be a complete tool to manage CS: GO tournament in LAN.

License: MIT License

Python 85.50% Shell 14.50%

yogi-bot's Introduction

Build Status Coverage Status Discord

Yogi the bot {•̃_•̃}

Yogi the bot is meant to be the tool that allows you to organize your CS:GO tournament in a LAN and kill the myth of not having a CS:GO LAN without issues.

It is based on what was done with https://github.com/deStrO/eBot-CSGO/ but after facing several critical issues with this tool, I decided to redo something similar with the knowledge of what I don't want to see happening during a LAN.

One of the pain points was also the installation of the whole set of tools with communication between the interface and the servers. With Yogi the bot, I want to provide a set of scripts which will help to simplify the installation of the cluster of game servers and also the web interface.

At best, just a list of few settings will need to be provided to set up and start everything.

Development planning

Basically, in a mid/long term, the goal is to have most of the interesting feature that eBot has.

Game server

  • Read, parse and send the log of the game
  • Receive commands from the web interface and apply them to the server
  • The capability to load a config file in the game server
  • The capability to load a pending game config on any game server
  • Export match replay in a storage server at the end of a match

Web interface

  • Manage a cluster of game server
  • Manage a set of matches
  • Plan a future set of matches
  • Retrieve and load configuration on game servers
  • Display game information to players and admin

Communication Schema

             +---------+
             |   Web   |
             |interface|
             +---------+
                  ^
                  |
     +------------|------------+
     |            |            |
     v            v            v
+---------+  +---------+  +---------+
| CS SERV |  | CS SERV |  | CS SERV |
+---------+  +---------+  +---------+

Installation

  • Script to install the web interface on a specific server
  • Script to install one or more game server on a list of servers

Expected improvement from other tools

  • Better and more consistent documentation on how to install and use the bot
  • Less fragile to network issues
  • Better management of conflict in match scheduling and configuration
  • Export data related to the actual match on a backup server for redundancy
  • Load pending game configuration on an other server in case of server issue

Local development

local CS:GO server

There is a nice docker image done by @Gonzih that you can find here: docker-csgo-server

To use it with Yogi, you'll need docker first (how to install), then you need to build an image to have an updated server with the command docker build -t csgo github.com/Gonzih/docker-csgo-server

Now you can run the server using the command docker run --rm --name csgo-server -d -p 27015:27015 -p 27015:27015/udp csgo

Check that the container is running with the command docker ps and you should see something like that:

CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS                                                NAMES
16f506d3f816        csgo   "./csgo.sh /bin/sh -…"   3 seconds ago       Up 1 second         0.0.0.0:27015->27015/tcp, 0.0.0.0:27015->27015/udp   csgo-server

To add your own rcon password: docker exec -t csgo-server bash -c "echo 'rcon_password 1234' >> csgo/csgo/cfg/server.cfg" To get the server config you can use the command docker exec -t csgo-server cat csgo/csgo/cfg/server.cfg

yogi-bot's People

Contributors

codacy-badger avatar dependabot-preview[bot] avatar dependabot-support avatar mirzazulfan avatar triat avatar

Watchers

 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.