GithubHelp home page GithubHelp logo

tfrizzell / duthie-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 829 KB

Score and news reporting Discord bot for competitive gaming leagues | Supports leaguegaming.com, myvirtualgaming.com, and thespnhl.com

License: MIT License

C# 99.91% Shell 0.04% Dockerfile 0.05%
discord discord-bot gaming

duthie-bot's People

Contributors

mlt-frizzell avatar tfrizzell avatar

Watchers

 avatar  avatar

Forkers

cgio59

duthie-bot's Issues

Add better escaping to messages

In the test server, I noticed that formatting characters don't appear to be properly escaped when building messages. This needs to be fixed.

image

Duthie bot unresponsive

I'm not very tech savvy, but i love duthie bot. Unfortunately, he no longer allows users to give commands.

"-duthie unwatch type=scores league=LGAHL team=CharlotteCheckers channel= #score"

"I'm sorry, @JClaus33, but you aren't allow to do that"

He says this to almost every command and in new servers when the owner of the server tries set him up.

Please help!

LG NCAA

Hey there,

Just curious if we can get the LG NCAA added to the duthie bot!

Thanks,
Kaliyev

`watcher add` command should respond appropriately to invalid entry

When attempting to add a watcher with invalid entries, the bot responds with a "no new watchers" message. This makes it unclear to the user that no watchers were added due to invalid entry, rather than the watchers already existing. The framework for this is already in place, but should be updated to better detect invalid entry.

Duthie Bot Occasionally Repeats News Items

Every once in awhile duthie bot will repeat the same news item over and over again.
Usually it will only stop once it has some different type of news item to announce. It's like it gets stuck announcing the same one.

For example, this one has been repeating every 15 minutes for over 12 hours now.
Screenshot 2024-03-12 at 1 59 18 PM

State tracking should also track the last timestamp

There's been a recurring issue where old roster transactions are getting reposted due to some change in the computed hash, often related to a player changing their username. To help mitigate this, the last timestamp should be tracked in addition to it's hash. This way, any item older than the last timestamp can be excluded.

League<=>Team mapping sometimes results in mismatches

While setting up some test watchers on the production instance, I encountered an issue where I couldn't register watchers for the Texas Stars simply by using "Stars" as the team name as it matched up to "Dallas Stars" instead. The bot should prioritize the selected league(s) first, before falling back on another option.

image

VGHL Issues

A couple of issues related to VGHL data have been reported and need to be investigated / addressed.

  1. #13 still isn't working. Upon investigation, it's due to the team map not being created properly.
  2. VGNHL playoff games aren't being scraped. This is likely the case for all leagues.
    3. There are occasionally repeated transactions being reported. This needs to be investigated and fixes.

VGHL links aren't generating correctly

I noticed this while testing. The links for VGHL aren't using incorrect parameter separators. For instance, the link for game results comes through as

https://vghl.myvirtualgaming.com/vghlleagues/vgnhl/schedule?view=game&(?:amp;)?layout=game&(?:amp;)?id=79886

instead of

https://vghl.myvirtualgaming.com/vghlleagues/vgnhl/schedule?view=game&layout=game&id=79886

MyVirtualGaming leagues are missing playoff games

Leagues on MyVirtualGaming are picking up regular season games from the /schedule endpoint, but playoff games don't appear on there. Playoff matchups are recorded at the /playoffs endpoint, with each series presenting a link to the series schedule. This endpoint will need to be added to the game scrape.

Add pruning to game service

To help manage the number of games in the database, pruning should be added to the game service. Any games older than 6 months should be deleted.

Add version command

A small QOL feature to add is the ability to get the Duthie Bot version number via Discord slash command. When using /duthie version, Duthie Bot should respond with the version currently running.

Leaguegaming.com CHL Teams Missing

I have noticed that there are a handful of teams missing in the Duthie bot for League gaming CHL on the PSN side. Currently there are only 41 teams available and when the league has the full amount of teams there are 60. Below is the list of all CHL teams on the xbox and PSN side for the CHL.

Acadie-Bathurst Titan
Baie-Comeau Drakkar
Blainville-Boisbriand Armada
Cape Breton Eagles
Charlottetown Islanders
Chicoutimi Sagueneens
Drummondville Voltigeurs
Gatineau Olympiques
Halifax Mooseheads
Moncton Wildcats
Quebec Remparts
Rimouski Oceanic
Rouyn-Noranda Huskies
Saint John Seadogs
Shawinigan Cataractes
Sherbrooke Phoenix
Val-d'Or Foreurs
Victoriaville Tigres
Barrie Colts
Erie Otters
Flint Firebirds
Guelph Storm
Hamilton Bulldogs
Kingston Frontenacs
Kitchener Rangers
London Knights
Mississauga Steel Heads
Niagara Ice Dogs
North Bay Battalion
Oshawa Generals
Ottawa 67's
Owen Sound Attack
Peterborough Petes
Saginaw Spirit
Sarnia Sting
Sault Ste. Marie Greyhounds
Sudbury Wolves
Windsor Spitfires
Brandon Wheat Kings
Calgary Hitmen
Edmonton Oil Kings
Everett Silvertips
Kamloops Blazers
Kelowna Rockets
Lethbridge Hurricanes
Medicine Hat Tigers
Moose Jaw Warriors
Portland Winterhawks
Prince Albert Raiders
Prince George Cougars
Red Deer Rebels
Regina Pats
Saskatoon Blades
Seattle Thunderbirds
Spokane Chiefs
Swift Current Broncos
Tri City Americans
Vancouver Giants
Victoria Royals
Winnipeg Ice

LG NCAA forums support?

Just reaching out to see if it were possible to get LG NCAA added to the list of supported leagues.

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.