Skip to content

Simple tool that send punkbuster screenshots to a Discord channel using a Discord Bot Token.

Notifications You must be signed in to change notification settings

pruu-networking/PunkBuster-Screenshots-to-Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PunkBuster-Screenshots-to-Discord

Simple tool that sends punkbuster screenshots to a Discord channel using a Discord Bot app.

Features

  • Connects to an FTP or SFTP server based on configuration.
  • Downloads screenshots and sends them to a Discord channel with Player Name and PB GUID.

Prerequisites

Before running the program, make sure you have:

  • Go installed (version 1.20+) (optional)
  • Docker and Docker Compose installed
  • A Discord Bot Token

Usage

  1. Clone this repository:
git clone https://github.com/pruu-networking/PunkBuster-Screenshots-to-Discord
cd PunkBuster-Screenshots-to-Discord
  1. Configure the docker-compose.yml file:
SERVER=<FTP_or_SFTP_server>
USER=<Username>
PASS=<Password>
SFTP_FOLDER=<Server_folder_path>
BOT_TOKEN=<Discord_bot_token>
CHANNEL_ID=<Discord_channel_id>
SELECT_FTP_MODE=<sftp_or_ftp>
WAITING_TIME=<Waiting_time_in_minutes>
# DEBUG_MODE=true # Uncomment this line to enable debug mode, use it only for testing purposes
  1. Then run it with docker-compose:
sudo docker-compose up --build -d

Update to a new version

Go to the directory where you cloned the repository and run the following commands:

git pull
sudo docker-compose down -v --rmi all
sudo docker-compose up -d --build 

And that's it, the new version is running.

TODO List

  • Improve the Config system to something more beautiful.
  • Improve the logging system with a log tool/package.
  • Improve the code to make it clean and efficient (maybe someday).

About

Simple tool that send punkbuster screenshots to a Discord channel using a Discord Bot Token.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published