I know GW2Bot already exists, but I’m currently learning CS and coding for a career change and decided to make my own discord bot, Guild Wars 2 Snow Crows Adaptive Meta, or “SCAM” as a personal project.

GitHub
Discord invite
How it works:

The “/metaprofit” command once added to your channel will display an aggregate list of items mentioned from every current Snow Crows build. Each item listed in the bot message can be clicked to view the associated gw2efficiency crafting page for the most accurate profit values. The bot will occasionally go down every few hours to update this list.

There are probably much more efficient methods to accomplish this, but hopefully it provides some utility for aspiring TP barons! Let me know what you think!

  • GHOSCHT@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    The code looks nice. Just as a recommendation: It’s always better to let the code document itself and not with comments. So rather than “# Check if the element is found” you could create a function called something like “check_for_element”.

    • watchdog@kbin.socialOP
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      The more detailed comments were more for myself to review my thought process if needed. If this were to be used professionally I would have just removed them entirely. I see what you mean about function nomenclature though. Thanks!