Steem Monsters Discord Bot

in #steemmonsters6 years ago


smlogo.jpg

Greetings all Steem Monsters Players!
I’ve been busy the last few weeks setting up a Discord bot for the Steem Monsters community. The little monster bot goes by the name sm-voter and can be found in SM’s Discord server.

The bot provides a number of useful commands to check stats linked to your Steem Monsters account.

Below is the main menu, which is accessible via the $help command.

Help Menu

Out of the statistics commands, we have the following:

$stats STEEM-user

stats command

Display stats linked to a user’s card deck. Shows a breakdown of the cards and displays the total BCX value and estimated market value. The $stats command needs to be followed by a valid steem-user.

The stats are fetched in real-time, except for the market value which is updated every 2 hours.

Upcoming features will allow for combined stats, in case a user owns several steem accounts.

$packs USER

packs stats for steem user

Displays the total number of packs bought. The user input can be either a Steem or Discord user. If a Discord user is provided it assumes you have already registered your Steem-user with the $register command. In case you own several Steem accounts it will give you a breakdown like this:

packs stats for discord user

$topten lists

topten list choice

There are a number of Top 10 lists available, for packs, cards, BCX and value.

These lists are updated approximately every 2 hours.

Currently, the top-ten lists are showing individual STEEM users. An upcoming feature will allow for the combine stats, in case a user owns multiple steem users and they are all registered in Discord.

Below an example of the top-ten list based on value:

top-ten value

$levels - $rules - $abilities

These commands will display pictures linked to gameplay and game mechanics.
Below an example of the $levels command:

card levels explanation

And here an example of the $rules command:

game rules

$register & $upvote

To link your Steem and Discord users you need to run the $register command. You can register several Steem users with the same Discord user, that will allow the bot to combine some of the stats for all your Steem accounts.

The minimum requirement to register is currently to own the Steem Monsters starter pack.

Registering will give you access to the $upvote command, with which you are allowed to upvote Steem Monsters related posts.

If you have bought more than 500 packs you will automatically be granted the Maverick status. Being a Maverick you will receive some extra perks, including access to a maverick only channel and a higher upvote tier.

Info about market value

The $USD market value displayed in the $stats and $topten commands are based on historical sales.

This is updated in every refresh cycle, which is currently about 2 hours.

Breakdown of activities in each cycle:

  • The average price of all new sales for a specific card is calculated. The cards are matched based on Card-ID, XP, Edition (Alpha or Beta) & Gold(True/False).
  • The old price stored in the database is combined with the price calculated above and divided by 2.

Two caveats with this method:

  • If a rare card has never been sold it will count as a $0 value.
  • If a rare card was sold several months ago, that price will still be used in the calculation.

First of all, with some cards, like legendary gold foils, which have never, or rarely been traded, it will always be difficult to display an accurate value.

For cards with no matching sales, a solution would be to look at the same type of cards but with a different XP level. Ex. if a card with 1000xp is worth $50, we can assume that the 2000xp card should be worth the double, as long as the cost to combine them is 2 to 1.
With such a model, it would be enough to have at least one sale for a specific card, regardless of the XP. We can just use the cost of combining cards to calculate all the other XP levels.


This bot is built in Python, using Discord.py for the Discord integration and Beem for the Steem blockchain part.



If you like what I do and would like to support me,
Please be awesome and vote me as a Witness.

SteemConnect Link

Steemit Link
Vote for danielsaori

Vote for danielsaori

Sort:  

Awesome post @danielsaori! Thanks for this impressive list of commands.

Thank you beeyou! I hope you are enjoying all your monsters and looking forward to the tournaments. I've tried out a few test games and it is pretty cool. But I forced myself to a private lesson with @davemccoy as I literally sucked at the game mechanics. In my first game, I even played the Angel of Light as my 1st card... Dave explained to me very politely, that it probably can't be any worse than that... ;)

I've been telling @beeyou that I would help her get going too @danielsaori and now maybe you will inspire her :) ... Thanks! (and ps... you both are teammates in our guild Team Possible) :D

That is very impressive. I think I will resteem this one. I may want to find that command list later.

Thanks a lot! I also pinned this post in the Discord channel in the bot's hut.
The Steem monsters game is impressive and a great addition for the steem blockchain.

Indeed it is and I am sure many users will benefit from this bot as well.

That is so cool that @steemmonsters shares upvotes to their supporters like that :)

Also $stats command is my favourite thing !!!

Nicely done

Thank you!
The $stats command seems to be a popular one indeed.

Great initiative that will sure come in handy as gameplay and battles start soon! I can't wait to complete my collection and get ready for battles! Thanks for your work!

Awesome! I hope to meet you on the battlefield.

Well someone sure didn't sit around doing nothing these last few days :)

Nice work Daniel! Very impressive, as usual!

Thank you Lynn!
With HF20 it was tough to get some work done. Happy now it seems to be back to a stable situation.

You're welcome Daniel! It does seem to be working great now, thank goodness :) I really did miss it, and of course everyone here ... that includes you ;)

This is all very helpful. Thank you!

Happy you liked it!

I began using the bot right on the first day Steem Monsters announced it (I was lucky to have just gotten my starter pack at the time, only a few hours before the alpha packs sold out). The bot is awesome!

It's very cool that you got to test the battles! I'm excited about the battles too. I just hope the part about configuring the teams will be accessible to screen readers...

Hi.... have you ever thought of modifying the underlying maths of this to work out the 'most undervalued' cars on the market?

Maybe to calculate the cost to level up to max. For example I just figured it's cheaper to max out some rare and epic cards than common given the later require about 12* fewer cards!

But it'd be nice to have some programme that could just work it out for me.

Or has someone already done this?

Posted using Partiko Android