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: $brawl_guild and $brawl_player
$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 $brawl_guild (so for example: $brawl_guild Team Possible):
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:
The command can be used like this: $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:
- Create a new channel called splinter-info
- Click here and choose the server you want to add the Discord Bot to (You need admin privileges to do so)
- Authorize the bot to read and write messages
- 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.
Congratulations @giemo! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):
Your next target is to reach 2000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Check out the last post from @hivebuzz:
Thanks for sharing! - @alokkumar121
This is awesome! anyway seems like brawl history is not showing up?
This has been disabled with the api changes a couple of months ago, because it was resulting in some softbans from the api.
I haven't gotten around to update/fix it yet
Oh, thanks! This is so amazing by the way.
Hello, I've read that you could share. I'd like to do quite the same thing but on a website and store each brawls results in a databse to keep track records.
Is it possible ti share source code of your bot ?
Just came across this today and gave it a try. Noticed an update needs to be made to the name of the Chaos Legion Only frays, they currently say "Untamed".
Awesome addition, @giemo 💜