Git Product home page Git Product logo

csgo-chat-bot's Introduction

CS:GO Chat Bot

!!! This is an old version !!!

A chatbot for CS:GO that reads the CS:GO console over telnet. The chat commands can be sent using the chat or using echo <command> in the console.

Huge thanks to @403-Fruit for sharing this project! The project helped me a lot when figuring out how to do things.

Setup

git clone https://github.com/Mikooboy/csgo-chat-bot
cd csgo-chat-bot
pip3 install -r requirements.txt

Add the following to the CS:GO launch options:

-netconport 2121  

Run the chat bot:

python cscb.py

Add your Steam and faceit API keys to the config.py file to get the !info command to work fully:

steam_api_key = '' # Steam web API key here to get steam/game stats
faceit_api_key = '' # Faceit API key here to get faceit levels

Note: Use the full authorization string for the faceit_api_key: 'Bearer <api_key>'

Commands

!help        - Prints out the list of avaible commands to the chat

<name> !info - Tries to get <name>'s game stats including: K/D ratio, Play time and 
               total rounds played on the current map.
             - Example:
                 miko !info
               returns: 
                 Miko | Hours: 1595 K/D: 1.13 HS: 42% cs_italy: 86 rounds Faceit: lvl 3

*all* !info  - Get the info table containing all the players in the game
             - This prints the whole table in easy to read format to the cmd
                  
<math> !calc - Calculates the math expression in <math> and returns the answer
             - Example:
                 (5 + 5) * 2 !calc
               returns:
                 (5 + 5) * 2 = 20

!swquote     - Prints out a random Star Wars quote

!bot         - Prints info about the bot to the chat

!clan        - Starts cycling through the clans listed in the `config.py` file
             - Used for animating the steam group on scoreboard
             - You need to be a member of the groups in the `config.py` file

!abort_clan  - Stops cycling through the clans

!clear       - Sends a long empty chat message that "clears" the chat
             - Run this through the console or a keybind

csgo-chat-bot's People

Contributors

mikooboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

edgejump

csgo-chat-bot's Issues

error on launch

image
getting this error when the bot is running and i open cs. i swapped out 'csgo.exe' for 'csgo.sh' in cscb.py since i am running on linux, however this error is likely related to something else that i am sadly unable to figure out myself.

python cscb.py Traceback (most recent call last): File "cscb.py", line 274, in <module>

C:\Users\RANGERSTUDIO\Desktop\csgo-chat-bot-main>python cscb.py
Traceback (most recent call last):
File "cscb.py", line 274, in
main()
File "cscb.py", line 60, in main
if not processExists("csgo.exe"):
File "cscb.py", line 41, in processExists
if proc.info['name'].lower() == processName.lower():
AttributeError: 'NoneType' object has no attribute 'lower'

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.