Giter Club home page Giter Club logo

ebot-csgo-web's Introduction

eBot-CSGO-Web

The eBot is a full managed server-bot written in PHP and nodeJS. eBot features easy match creation and tons of player and matchstats. Once it's setup, using the eBot is simple and fast.

This tools use: This is the web panel for eBot-CSGO The panel is based on Symfony 1.4

Requirements

  • Linux, Windows
  • PHP 5.3 or newer
  • nodeJS

The following extensions are required:

  • MySQL
  • Sockets

See installtion guide for a step-by-step install instruction.

License

The code is under Creative Commons license. You can find all details here: http://creativecommons.org/licenses/by/3.0/

You can copy, distribute, modify the source code, but you have to keep the license terms.

Credits

Thanks

  • Loic Peron (RegnaM)
  • Ph3nol

See also

ebot-csgo-web's People

Contributors

basert avatar destro avatar lukasz922 avatar moondarker avatar pokap avatar shobhit-pathak avatar vintric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ebot-csgo-web's Issues

Unable to parse error

I try to make private eBot server, but I have problem
I type command 'php symfony cc', but it print this error
"Unable to parse file "/usr/share/ebot/config/app.yml": Unable to parse line 21 ( .array:)."
I don't know why symfony print this error, I try to edited app.yml, but I didn't solve this problem
anyone solved this problem?
(Sorry for my bad english)

and is eBot still continue the project?

installation

I'm trying to get eBot work on my local MAMP environment but I don't know how to install the web panel. Can you please write an install manual?

Thanks for your great work!

m.tv_record_file

When I create match and I want to go to Matches in Progress I have a error: Page could not be loaded due to an error.

In apache log: [Sat May 07 17:26:33.898884 2016] [:error] [pid 12474] [client XXXXXXXX:63077] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm.tv_record_file' in 'field list', referer: http://XXXXXX/admin.php/matchs/create

SQL Schema, Out of date

The SQL Schema is out of date, missing multiple fields included:

Unknown column 'm.auto_start' in 'where clause'root@ebov3:/etc/eBot-CSGO#
Unknown column 'm.startdate' in 'where clause'root@ebov3:/etc/eBot-CSGO#
Unknown column 'm.auto_start_time' in 'where clause'root@ebov3:/etc/eBot-CSGO#

Enable registration for new users

Currently got the web panel installed on my website, but i can't seem to find anywhere to allow users to sign up for an account, so they can access the panel. Is there some option to enable this feature?

admin.php is white/dns error (app.yml)

Hello,

i got problem with app.yml

error:
Uncaught exception 'InvalidArgumentException' with message 'Unable to parse file "/var/www/eBot-WEB/config/app.yml": Unable to parse line 21 ( .array:).'

what to do?

Local installation tutorial

Hi. Can someone make video how to install and setup ebot on my local computer with windows OS from the scratch. Im new at web so i try to install wamp and composer and node js but nothing happend :/

Backend Livemap

Is this supposed to not work? Any info or guide to get it working? Much appreciated.

Object loggers has no method 'bind'

websocket.error

TypeError: Object loggers has no method 'bind'
    at Adapter.clients (/usr/share/eBot-CSGO/node_modules/socket.io/node_modules/socket.io-adapter/index.js:195:31)
    at Namespace.clients (/usr/share/eBot-CSGO/node_modules/socket.io/lib/namespace.js:253:16)
    at Socket.<anonymous> (/usr/share/eBot-CSGO/websocket_server.js:137:28)
    at Socket.emit (events.js:95:17)
    at Socket.emit (/usr/share/eBot-CSGO/node_modules/socket.io/lib/socket.js:141:10)
    at Socket.onclose (/usr/share/eBot-CSGO/node_modules/socket.io/lib/socket.js:439:8)
    at Client.onclose (/usr/share/eBot-CSGO/node_modules/socket.io/lib/client.js:235:24)
    at Socket.emit (events.js:117:20)
    at Socket.onClose (/usr/share/eBot-CSGO/node_modules/socket.io/node_modules/engine.io/lib/socket.js:304:10)
    at WebSocket.g (events.js:180:16)

sfCacheException error

Hi, great work.

but i have run in to a problem, ebot works. But ebot web panel dont. here is the error from apache2/error.log. This is the error i get when trying to access the /admin.php.

virtualbox_ebot server_29_01_2016_16_54_53

Maybe i have copied eBot-Web wrong. Can you pleas tell me how to copy the files to my /var/www folder? i have tried diffrent ways to link or copy it. Some of the ways i have tried: "cp -a ebot-web /var/www/html" "cp -a ebot-web /var/www/" "ln -sf ebot-web /var/www/html". And when i do "cp -a ebot-web/web /var/www/html, it cant find ProjectConfiguration.class.php.

Thanks for answers!

eBot echo's commands on server but not to players

Hello,

After a clean install, where i have ebot running on a ubuntu client and CSGO on Win2012r2, it doesn't work as it should be.

On the server i see that ebot accepts all the ingame commands, but doesn't show them to the user.
so !ready is working and !help and !rules not.
it does load the configs (for a match) as it should and the bot also talks ingame.
anyone has an idea why it shows those personal messages only on the server, and the ready command to the players and the server.

both logaddress_add and sv_rcon_whitelist_address on the server config have the ip of the ebot server

my full run command for csgo:
C:/csgosl/server/srcds -game csgo -console -usercon -condebug +game_type 0 +game_mode 1 +mapgroup mg_active +map de_nuke +sv_setsteamaccount xxxxxxxxxxxxxx -maxplayers_override 10 -tickrate 128 +sv_password xxxxxx -ip 192.168.1.66 +hostname "xxxxxx CSGO" -port 27015 +sv_lan 0 +sv_rcon_whitelist_address 192.168.1.79 +logaddress_add 192.168.1.79:12360

within config.ini i gave BOT_IP 192.168.1.79 (ebot server)
and EXTERNAL_LOG_IP the same, but also tried the .66 ip for the CSGO Server

And for the Complete picture, ofcourse i added 12360 to the csgo server both ways

Thanx

What must be have permissions www-data?

hi,
what must be have permissions for write or read files in ebot-web.

I have this error when i join to index.php:

Not Found

The requested URL /home/ebot/ebot-web/web/index.php was not found on this server.

admin.php it's works good

Installation error

php symfony doctrine:insert-sql


 Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/eBot-CSGO-Web-master/lib/vendor/symfony/lib/config/sfRootConfigHandler.class.php on line 91
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/eBot-CSGO-Web-master/lib/vendor/symfony/lib/config/sfDefineEnvironmentConfigHandler.class.php on line 66
PHP Warning:  require_once(/var/www/eBot-CSGO-Web-master/config/app_user.yml): failed to open stream: No such file or directory in /var/www/eBot-CSGO-Web-master/config/app.yml on line 6
PHP Fatal error:  require_once(): Failed opening required '/var/www/eBot-CSGO-Web-master/config/app_user.yml' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/eBot-CSGO-Web-master/config/app.yml on line 6
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/11-App

# default values
all:

What i have to do?

Web Panel error 500

i check the error log in apache
[Thu Jul 20 04:05:55.689874 2017] [http:error] [pid 21199] [client 182.253.162.5 7:2239] AH02428: Empty response header name, aborting request

what should i do?

Any links on the index give an error 500

So the admin panel works, but the links like stats, language switching, credits, etc, all break with an error 500.

This is the apache error log with LogLevel debug:

[Sun Feb 05 23:43:24.640879 2017] [authz_core:debug] [pid 3318] mod_authz_core.c(802): [client my.ho.me.ip:port] AH01626: authorization result of Require all granted: granted, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.641536 2017] [authz_core:debug] [pid 3318] mod_authz_core.c(802): [client my.ho.me.ip:port] AH01626: authorization result of <RequireAny>: granted, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.643407 2017] [core:error] [pid 3318] [client my.ho.me.ip:port] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.643694 2017] [core:debug] [pid 3318] core.c(3518): [client my.ho.me.ip:port] AH00121: r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.643856 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644115 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644277 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644435 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644653 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644814 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.644970 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.645119 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.645320 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /home/ebot/ebot-web/web/index.php, referer: http://my.ser.ver.ip/ [Sun Feb 05 23:43:24.645473 2017] [core:debug] [pid 3318] core.c(3525): [client my.ho.me.ip:port] AH00122: redirected from r->uri = /stats, referer: http://my.ser.ver.ip/

I followed the ebot part of this setup to the letter http://robertan.com/home/2016/09/03/setting-up-csgo-dedicated-server-with-ebot/

How can I make own groups? (Permissions)

Hey,

a few months ago a guys said, that it is possible to make your own groups, ex. that they can only create and start matches.

How is that possible?

  • I don't need a step by step tutorial, only the requirments :)

Greetz Bl4CkGuuN

Cant use web installation (ip/installation/0.php)

i FINALLY got the web panel set up and loading after fixing DST settings in symfony.

now when im trying to go through the admin part of the setup, none of the bottons at the bottom work.
ie "Next Step" etc.

if i go to SERVER_IP/installation/1.php and i test the DB connection, it shows that it can connect to the database, and i added the text to my databases.yml file. upon trying to go to 2.php, it says that the MySQL connection has not been established ~:(

what can i do?

Plus de maps dans la création de match en backend !

Il semblerait qu'il n'y ait plus de maps dans le select de la création de match en backend depuis mon dernier git pull.

J'ai pas eu le temps d'y jeter un coup d'oeil, mais il me semble qu'un var_dump(sfConfig::get('app_maps')) retourne un beau NULL depuis l'action concernée ! ;)

sql password misinterpreted

Hello

I had as password for sql user this string : 1+TS0Mm+ZwbpfEww
and I was able to connect from shell / phpmyadmin / etc

but when I wanted to do
php symfony doctrine:build --all --no-confirmation
there was an error :
PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'ebotv3'@'localhost' (using password: YES)

I tried adding "" around the password, but I didn't work so I changed it and it works
So I guess somewhere the password is misinterpreted ?

Switch language?

Hello,

Why are it's not possible to switch language.

Example:
6a53634f7246ee2465731fa10a32fd01

Create Admin Account over web/installation

in: /web/installation/2.php

When register a new account over the installation setup the code will insert the clear text password into the table "sf_guard_user" password field. The result is that you can't login in over the /web/admin.php site.

(email_address, username, algorithm, salt, password, is_active, is_super_admin, created_at, updated_at)
VALUES
('".$_POST['email']."', '".$_POST['username']."', 'sha1', '".$salt."', '".$_POST['password']."', '1', '1', NOW(), NOW())");

as you can see it insert the $_POST['password'], not the SHA1 hash of the salt and password.

ps.: Else everything is working fine, I just manually updated the password field with the right SHA1 hash and was able to login.

Unknown column 'm.is_paused' in 'field list'

After i installed the web-panel i tried to got to the adminpage but the page says:

Error
Page could not be loaded due to an error.

PHP log:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm.is_paused' in 'field list'
i already reup the database but nothing :/

Installation fails

Hi,

Database creation on installation fails with error

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes. Failing Query: "CREATE TABLE sf_guard_user (id BIGINT AUTO_INCREMENT, first_name VARCHAR(255), last_name VARCHAR(255), email_address VARCHAR(255) NOT NULL UNIQUE, username VARCHAR(128) NOT NULL UNIQUE, algorithm VARCHAR(128) DEFAULT 'sha1' NOT NULL, salt VARCHAR(128), password VARCHAR(128), is_active TINYINT(1) DEFAULT '1', is_super_admin TINYINT(1) DEFAULT '0', last_login DATETIME, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX is_active_idx_idx (is_active), PRIMARY KEY(id)) ENGINE = INNODB". Failing Query: CREATE TABLE sf_guard_user (id BIGINT AUTO_INCREMENT, first_name VARCHAR(255), last_name VARCHAR(255), email_address VARCHAR(255) NOT NULL UNIQUE, username VARCHAR(128) NOT NULL UNIQUE, algorithm VARCHAR(128) DEFAULT 'sha1' NOT NULL, salt VARCHAR(128), password VARCHAR(128), is_active TINYINT(1) DEFAULT '1', is_super_admin TINYINT(1) DEFAULT '0', last_login DATETIME, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX is_active_idx_idx (is_active), PRIMARY KEY(id)) ENGINE = INNODB
Any tips?

Just Web

Hello i want use just ebot web. i using splewish pug for 5vs5 matchs but how i will install ebot web for my gameserver ? the install info not enough there is another easy way ? or video ? i using linux centos 6

and 1 morething on my dedicated i have more than 1 server how i will use for all ebot web ? thanks.

WebSocket offline

Salut,

Je suis Drake l'admin serveur CS;GO de la Nantarena et j'ai installé ta dernière version (comme me l'a dit Sickness).

Cela dit, j'ai le message WebSocket offline, et du coup je ne peux pas contrôler grand chose des matchs sur le panneau administrateur (ni avoir le livemap).

Il y aurait une solution ?

Merci

Demo button away

Hey,

i running the privately ebot.

Where demo/download is true (enabled)

But it's away.
(Screenshot):
ebot1
ebot2

But no "demos" :(

bot doesn't recognize commands like !ready

I managed to get the Bot on the Server, I'm able to restart the game form the web panel but when I type !ready or !help there is no reaction from the bot. Unfortunately i don't know how i can debug if the chatcommand are processed by the Server.

Can't login using nginx

I have installed eBot-CSGO-Web on my CentOS-7 running nginx..
Now the problem is when I try to login from /admin.php I always get Error - Page not found!

In my nginx log file I get the error:
PHP message: Empty module and/or action after parsing the URL "/admin.php/guard/login" (/)

My nginx.conf

 server {
        listen       80 default_server;
        server_name  localhost;
        root         /var/www/web;
        index index.php;

        access_log  /var/log/nginx/main.access.log  main;
        error_log /var/log/nginx/main.error.log;

        location / {
                rewrite ^/$ /index.html;
                rewrite ^/([^.]+)$ /$1.html;

                if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php last;
                }
        }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

        location ~ /\.ht {
                deny all;
        }

        location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ {
                expires 30d;
        }
    }

BO3?

How could does the BO3 (Best of 3) works on GOTV?

More, about it's possible to add maps.
Example:
de_dust2
de_inferno
de_overpass (if need)

Undefined index: WORKSHOP (Centos 6.7)

I got message ( PHP Notice: Undefined index: WORKSHOP in /tmp/eBot/src/eBot/Config/Config.php on line 68 )
when I started a bot like this pic below.

capture

and I used a public ip for ebot, I have tried to run a bot it can send rcon command to csgo server but cant received any messages from csgo server.
PS. csgo server I rent from clanwarz.com.

Group and Permissions for users

Hi, i have problem with create new groups or permissions.
I use panel and i looked through to code and i don't found this function or config.

Regards
Szymon

eBot User permission

Hello,

How can i install the user permission on the eBot version?

if i register one user, the user has "automatic" fully admin. and delete my account etc etc.

What to do?

symfony: app.yml has syntax problem. Need fix!

My symfony won't parse the "config/app.yml" file. It says: 'Unable to parse file "/var/www/eBot-CSGO-Web/config/app.yml": Unable to parse line 7 ( all:).' when running "php symfony cc". If I am right it is because of the php code in it. Can any one aprove this or/and fix it?

In apache2 the error looks like: '[Wed Dec 16 19:00:08 2015] [error] [client x.x.x.x] PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to parse file "/var/www/eBot-CSGO-Web/config/app.yml": Unable to parse line 17 ( .array:).' in /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/yaml/sfYaml.php:100\nStack trace:\n#0 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfYamlConfigHandler.class.php(72): sfYaml::load('/var/www/eBot-C...')\n#1 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfYamlConfigHandler.class.php(39): sfYamlConfigHandler::parseYaml('/var/www/eBot-C...')\n#2 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfDefineEnvironmentConfigHandler.class.php(146): sfYamlConfigHandler::parseYamls(Array)\n#3 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfDefineEnvironmentConfigHandler.class.php(45): sfDefineEnvironmentConfigHandler::getConfiguration(Array)\n#4 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfConfigCache.class.php(108): sfDefineEnvironmentConfigHandler->execute(Array)\n#5 /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/config/sfConfigCache.c in /var/www/eBot-CSGO-Web/lib/vendor/symfony/lib/yaml/sfYaml.php on line 100'

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.