GravityWolfNotAmused / PlayerCountDiscordBot

A simple discord bot that updates their status' to show player counts.
MIT License
36 stars 16 forks source link

Game Provider Update #18

Closed GravityWolfNotAmused closed 2 years ago

GravityWolfNotAmused commented 2 years ago

Providers are classes that return required data to update the bots status (IServerInformationProvider)

Available Providers:

Name Config Value
Steam 0
CFX 1
Scum 2
Minecraft 3

Depending on which provider is chosen then the difference in logic will execute but provide the same resulting data. The goal for after this PR is complete is to create more providers for different games that are not supported.

GravityWolfNotAmused commented 2 years ago

@Specker I still need to add docker changes, I want to clean it up, but I at least wanted to see if someone would test it out while I accomplish that.

GravityWolfNotAmused commented 2 years ago

Updated Snapshot:

DiscordPlayerCountBot.zip

GravityWolfNotAmused commented 2 years ago

@Specker I have decided that it's not worth the extra time to revisit for a few low-hanging fruits. So, I have brought support for Steam, CFX, Scum, and Minecraft.

GravityWolfNotAmused commented 2 years ago

I might also bring in Battle Metrics support to have a broader range of variations without the need for unique logic.

GravityWolfNotAmused commented 2 years ago

@Specker

I have moved the logic for getting docker configuration. Look here: https://github.com/GravityWolfNotAmused/PlayerCountDiscordBot/blob/CFX-Update/DiscordPlayerCountBot/Configuration/DockerConfiguration.cs

GravityWolfNotAmused commented 2 years ago

@Specker I think have covered everything for ProviderType in the logic, and docker files. Can you test the docker stuff for me please? What else needs to be done to release this thing?

GravityWolfNotAmused commented 2 years ago

For anyone who wishes to test out the CFX, Scum, or Minecraft features you can use the snapshot attached to this comment.

Please note that I am not doing self-contained executables, so there are now fewer files with releases.

DiscordPlayerCountBot.zip

GravityWolfNotAmused commented 2 years ago

@Specker Any chance you could look into automating the updating process of the docker image?

GravityWolfNotAmused commented 2 years ago

We are now working off of the dev branch, and promoting to master.