4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

[splinter-info] Tracking your guilds Brawl statistics? This will help you!

Brawls have become more and more popular, with guilds leveling up to be able to participate in them. For already established guilds, who want to optimize their fray assignments, I added two more commands to the splinter-stats Discord bot: brawlguild**and**brawl_guild** and **brawl_player

2VZXybTSZJq1EFEMqZ2iEs7VKxvmFVY6eLE22jxtvUD9ojf1SpbeBSeVs7jna4dWHo9hJKYfEs8FF9SEiC46U5HC66zobtH1XuPkfPyAtFmRaVfnTH9cKXq6L1jteNmiNjU4N8hY3RyJCDwF7AvEyGcYWsQ.png

$brawl_guild

With the introduction of Brawls 2.0 the API now stores more information regarding Brawls. You can basically get the results on every Brawl since the 40th cycle. I don't know if it's possible to get the information before as well, so if you do then please let me know and I'll add it to the bot.

This is the information the you will get if you use the command brawlguild<guildname>**(soforexample:**brawl_guild <guildname>** (so for example: **brawl_guild Team Possible):

image.png

Here is a little bit of explanation of the specific fields, but they should be pretty self explanatory:

Cycle Brawl Cycle (Starts at 40 with the begin of Brawls 2.0)
Rank Which rank the guild finished in a Brawl
Wins Total Wins in a Brawl
Losses Total Losses in a Brawl
Draws Total Draws in a Brawl
Points Total Points gained in a Brawl (from win/loss/draw)
Merits Total Merits that the guild earned in a Brawl

$brawl_player

The probably more interesting command is $brawl_player. It will give you the lifetime Brawl performance of the player within your guild. It summarizes all previous Brawl performances and aggregates the stats into the following table:

image.png

The command can be used like this: brawlplayer<playername>**(e.g.**brawl_player <player_name>** (e.g. **brawl_player giemo) Here again the explanation of the various fields:

Fray The Frays the player has played
Wins Total Wins within a given Fray
Losses Total Losses within a given Fray
Draws Total Draws within a given Fray
Participation Participation within a given Fray

Important: Since I don't want to spam the API (which would also result in a timeout and the unavailability of the Discord Bot) I am saving the Brawl results on the server. That means, the first time someone wants to get their player stats, I run through all the Brawls he/she was participating. This first run will take a lot longer than any future runs (where I can take that information from my server directly). It is also possible that the first time you try to use this command, it fails with an error message. Just wait a couple of minutes (at least 5) and then try again. It most certainly will work then.

How to integrate the bot into your Discord Server?

If you are an admin of a Discord Server and like to integrate splinter-info there, follow the below steps and you are ready to use it:

  1. Create a new channel called splinter-info
  2. Click here and choose the server you want to add the Discord Bot to (You need admin privileges to do so)
  3. Authorize the bot to read and write messages
  4. Use the bot as described above

If you have any suggestions for future utilities, that this bot should have, please let me know!


If you haven't joined Splinterlands yet, don't miss out on the fun. Use my referral link and I'll set you up with a couple of cards to get you started.

92 upvotes $2.91

Replies (8)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: