GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - prestrafe/prestrafe-bot

This repository was archived by the owner on Dec 27, 2022. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

217 Commits
217 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
config
config
 
 
deployment
deployment
 
 
globalapi
globalapi
 
 
gsiclient
gsiclient
 
 
twitchbot
twitchbot
 
 
utils
utils
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

Building and running the bot locally

Start by checking out this repository and navigate into it within your terminal. Since the bot is designed to run inside a Docker container, it requires some setup. First off, you will need to create a config file that contains the Twitch channels that the bot should join. Create a file named config.yml in the source code directory and add the following content:

channels:
  - name: SomeChannel # This is the name of the Twitch channel that the bot should join. 
    gsiToken: xxx # This can be any random string, that needs to be present in your CSGO GSI config as well. 

Next you will need to define some environment variables to configure the bots execution context. To do so, create a file called development.env inside the source code directory and add the following content:

# This is required because of limitations of Docker for Windows, we cannot mount the config file.
BOT_CONFIGDIR=/src

# The API token the bot should used to authenticate against the Global API.
BOT_GLOBALAPITOKEN=xxx

# The address and port of the GSI backend service that should be used by the bot.
# It depends on how you run the GSI backend, but most likely example values are correct for local development.
BOT_GSIADDR=localhost
BOT_GSIPORT=8080

# The Twitch.tv username and API token that should be used to talk to the Twitch Chat API.
BOT_TWITCHUSERNAME=xxx
BOT_TWITCHAPITOKEN=xxx

Now you are ready to run the Docker container. The bot is shipped within a Docker container that builds the executable and runs it directly afterwards. To build and run that container, perform the following commands:

docker build -t prestrafe-bot:dev .
docker run --rm --network=host --name prestrafe-bot --env-file .\development.env -it prestrafe-bot:dev

Of course, you need to run the GSI backend service before the bot will be able to work.

Supported commands

  • !bpb (bonus-number) (map-name): Displays the personal best time for the bonus stage.
  • !bwr (bonus-number) (map-name): Displays the world record time for the bonus stage.
  • !globalcheck: Yes
  • !prestrafe: A list of supported commands of the Prestrafe bot.
  • !map (map-name): Displays information about the currently played map.
  • !mode: Displays the currently played KZ timer mode.
  • !pb (map-name): Displays the personal best time for the main stage.
  • !rank (tp/pro/nub/all): Displays rank and map completion information.
  • !stats: Displays a link to the GOKZ-Stats page.
  • !tier (map-name): Display the difficulty level for the map.
  • !wr (map-name): Displays the world record time for the main stage.

Jumpstat Commands

  • !bh (bind|nobind): Displays the best bunny hop.
  • !dh (bind|nobind): Displays the best drop hop.
  • !laj (bind|nobind): Displays the best ladder jump.
  • !lj (bind|nobind): Displays the best long jump.
  • !mbh (bind|nobind): Displays the best multi bunny hop.
  • !wj (bind|nobind): Displays the best weird jump.

Deployment Trigger

Number: 1

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.