Git Product home page Git Product logo

prism's Introduction

This README is just a quick start document. You can find more detailed documentation of Spunky Bot at https://spunkybot.de.

What is Spunky Bot?

Spunky Bot is a lightweight game server administration bot and RCON tool. Its purpose is to administer, manage and maintain an Urban Terror 4.1 / 4.2 / 4.3 server and to provide real time statistics data for players. Spunky Bot is a cross-platform package and offers in-game commands without authentication and automated administration even when no admin is online. The code of Spunky Bot is inspired by the eb2k9 bot by Shawn Haggard, which was released under the Beerware License.

Build Status Actions Status License Release PyPI version Python version GitHub Downloads

If you want to know more, this is a list of selected starting points:

Features

  • Lightweight and fast
  • Real time game statistics
  • Different user groups and levels
  • Supports all RCON commands
  • Supports temporary and permanent bans of players
  • Supports rotation messages
  • Stores all player related information in a SQLite database
  • Runs 'out of the box', no other software requirements

Environment

  • Urban Terror 4.1.1 / 4.2.023 / 4.3.4
  • Python 2.6 / 2.7
  • SQLite 3 database
  • Cross-platform (tested on Debian 6 - 10, Ubuntu 10.04 - 20.04, CentOS 6 / 7, macOS 10.13, Windows 7 / 10)
  • Supporting 32-bit and 64-bit operating systems

Quickstart

It's easy to get started with Spunky Bot:

Configuration

  • Modify the Urban Terror server config file as follows:
seta g_logsync "1"
seta g_loghits "1"
seta g_friendlyfire "2"
  • Restart your Urban Terror server
  • Modify the Spunky Bot configuration file /conf/settings.conf and set game server port and RCON password
  • In-game displayed rules/advertisements are contained in the file /conf/rules.conf
  • If you do not want to display the rotation messages, set the value show_rules=0 in the config file /conf/settings.conf
  • Run the application manually: python spunky.py
  • Or use the provided systemd or sysVinit script to run Spunky Bot as daemon

First start instruction:

  • Connect to your game server and type !iamgod in the global chat to get the admin level "Head Admin". This command is only once available.

Documentation

You can find all details in the latest documentation.

Bot Commands

The description of all available commands as well as the admin levels and rights is located under the subfolder /doc.

Resources

Changelog

You can keep up-to-date with the changes that we have made via our releases page.

Versioning

Spunky Bot is currently maintained under the Semantic Versioning guidelines. Releases will be numbered with the following format: <major>.<minor>.<patch>

Additional Information

For additional information, visit the Spunky Bot website at https://www.spunkybot.de.

If you have any questions about Spunky Bot or need help, please use the mailing list.

If you have bug reports or feature suggestions, please use the issue tracker.

Contributing

You can help us in different ways:

  • Open an issue with suggestions for improvements
  • Fork this repository and submit a pull request:
    • Click the Fork button to create your personal fork
    • Create your feature branch (git checkout -b new-feature)
    • Commit your changes (git commit -am 'Add some feature')
    • Push to the branch (git push origin new-feature)
    • Create a new pull request
  • Improve the documentation (separate repository)

By contributing code to this project in any form, including sending a pull request via GitHub, a code fragment or patch via mail or public discussion groups, you agree to release your code under the terms of the MIT license that you can find in the LICENSE file included in this source distribution.

Please see the CONTRIBUTING guide for information regarding the contribution process.

License

The code of Spunky Bot is released under the MIT License. See the LICENSE file for the full license text.

Third Party Libraries

  • RCON: pyquake3.py
    • The library has been modified to fix some error handling issues and fulfill the PEP8 conformance. This file is released under the GNU General Public License.
  • GeoIP: pygeoip.py
    • The library has been extended with the list GeoIP_country_name to support full country names (e.g. Germany for country_code DE). This file is released under the MIT License.
  • GeoLite database: www.maxmind.com
    • The GeoLite databases created by MaxMind are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License and the MaxMind Open Data License.
  • Schedule: schedule.py
    • This file is released under the MIT License.

Urban Terror® and FrozenSand™ are trademarks, or registered trademarks of Frozensand Games Limited.

Thank you!

We really appreciate all kinds of feedback and contributions. Thanks for using and supporting Spunky Bot!

prism's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

prism's Issues

Feature request - Edit players

It would be helpful to be able to edit a players access to the game, by changing them from REG to ADMIN
and banning and unbanning

Data from DB is not loaded

Hi
I have some issues loading the DB content. I get these PHP errors:

[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 378
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 423
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 449
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'id' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 495
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'name' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 495
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'kills' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 495
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'id' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 508
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'name' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 508
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'ratio' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 508
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'id' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 521
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'name' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 521
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'max_kill_streak' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 521
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'id' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 534
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'name' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 534
[18-Apr-2021 11:08:15 Europe/Copenhagen] PHP Warning: Illegal string offset 'rounds' in C:\xampp\htdocs\e107\prism\1\lib\prism.php on line 534

I use xampp and PHP 7.4.1

!command console

is there any way to invoke a command prompt to send !commands to the server and see the results? and maybe talk to the players from Prism??

and maybe a way to edit the sqlite database from Prism??

won't update!?

Hi I setup Prism the other day and there has been NO changes!
how does Prism update?? is the a cron job I need to setup?!?

Love the looks of it BUT!?!?!

Help!!

Players Stats

Players Stats are NOT updated, The home page updates just fine but if you go to players stats it's NOT updated! "LAST SEEN" is 2 weeks behind! also the ban list! if you unban someone still shows them as banned! the config file is showing the correct path to the database file!

thanks
Joe

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.