Coder Social home page Coder Social logo

steezeburger / palguybuddydude Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 886 KB

go service that utilizes a palworld-rcon-buddy api to get server info and post it to discord. plans for palworld server analytics web app.

Dockerfile 3.86% Just 8.02% Go 88.12%
discord discord-bot docker go palworld palworld-dedicated-server palworld-discord-bot palworld-rcon palworld-server-docker rcon

palguybuddydude's Introduction

palguybuddydude

A go service that uses palworld-rcon-buddy api to ping for player info and notify discord whenever players join or leave.

Dependencies

Configuration

Usage

  • docker-compose up -d

Upgrading

You can upgrade by pulling the latest code, stopping the service, rebuilding the image, and starting the service again.

git pull origin main
docker-compose stop
docker-compose build
docker-compose up -d

How it works

The service uses the palworld-rcon-buddy api to get the player list and then compares it with the previous list to see if any players have joined or left. If any players have joined or left, it sends a discord webhook notification.

palworld-rcon-buddy is ran via docker-compose.

palworld-rcon-buddy implements its own rcon client, which worked much better than other rcon clients I tried, including gorcon/rcon.

palguybuddydude's People

Contributors

steezeburger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xhyperelectric

palguybuddydude's Issues

pulls steam username instead of player name for the first few seconds

when someone logs in and their steam username is different than their ingame name, the bot double posts by posting the steam username as the first player joining, then it gets their actual ingame name and then posts their ingame name as another player joining, then it posts the steam username as a player that left.

it gets a bit confusing as it makes it look like there are multiple people joining the server

image attached for clarity, blue is the steam username, pink is the ingame name.

image

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.