New Features for the Steem Monsters Discord Bot

in #utopian-io5 years ago (edited)

Repository

https://github.com/jedigeiss/MonsterDiscordBot

New Features

Integrated a tournament reminder list

There was an idea contribution by @rivalzzz to that topic and I definetly think that it makes a lot of sense to integrate a tournament calendar within discord, so that everybody can be aware of upcoming tournaments.
Included the add, show and delete of tournaments.

Here is a screenshot showing the visuals:
tournament.png

Added the support for the reward card edition

Recently, the SteemMonsters Team added a new edition of cards, the reward cards. They had to be integrated in all the calculations and tables in order to be available for all the functions within the bot.

Here is a visual of one of the new cards:
hobgoblin.png

Minor additions

I added a lot of things in the code, but mostly minor stuff. For instance now the league is calculated and displayed within the players detail command !monster.

Here is a screenshot how this looks like:
monster.png

How did you implement it/them?

The inclusion of the new reward card edition had to be done at various places, first of all in the database, but this was quite easy because I wrote an automatic update function that already covers this part.
The more difficult part was the exclusion within the BCX calculation (basically what this does is to calculate the base card value of a monster that already is leveled, you need to do this to have a solid comparison with not leveld cards in regards to pricing)

The Tournament integration needed a change in the database first, a table to contain the data had to be created. After that the necessary functions for adding, showing and deleting had to be brought up.
Now the code in the monsters.py file is getting a bit much, I may have to divide this up into different sets of code in order to keep it maintainable.

Important for me is to use static code analysis as a benchmark and to try to come as close to a good mark as possible.

Production

The MonsterBot was updated tonight with all the changes and is running for instance on the guild discord server of the Legendary Dragons.

GitHub Account

https://github.com/jedigeiss

Sort:  
  • Good article and images.
  • Could use more code samples as a development post. Any struggles?
  • Perhaps we don't need line 27 & 28?

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @helo! Keep up the good work!

thanks for the epic changes! :)

Hi @jedigeiss!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @jedigeiss!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Du bist der Beste!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64006.33
ETH 3077.08
USDT 1.00
SBD 3.87