v0.12.0
This is the first really stable version
The cards system
One of the biggest points was that the cards system is currently hacky, slow and hard to understand. The following has been changed:
k!cardinfo <card_id>
gives you infos about a card you ownk!use
has been rewritten entirely to be more reliable, clean and giving better error messages.- if you provide wrong arguments for a card it will now exactly tell you what you need to provide for that specific card
- reused code has been optimised
- instead of having a lot of
elif
statements, each spell card is a subclass of theCard
class and gets called when needed - The defence UI has been improved
- The book has been optimised to be as fast as possible by
- caching all cards on startup
- also caching the background
- having the card background be transparent
- improved positions of the cards
- Having a full book now grants a badge and the card 0, those will be removed in case any of the 100 cards is removed
- The
User
class is now being cached to minimise requests to the database remove_card
andadd_card
have been rewritten to in theUser
class to work not just hopefully- added
k!check <card_id>
which gives you additional info about how many copies you own of this card that are fake and where - Improved logic for
discard
by it first checking for fakes in the free slots to discard and then discards the first match
The todo system
- the system has been tested and the bugs found were fixed
- The
TodoList
class is now also being cached to minimise db requests - more appropriate errors have been added for commands like
todo invite
- most things not requiring text input have been rewritten to buttons
Shops
Shops have been redesigned. With the addition of LootBoxes it became necessary to differentiate shops clearer. Now the shop as well as the buy command requires an argument about what type of item is wanted.
shop <cards/lootboxes/todo
buy <card/todo/lootbox>
If no argument was provide for shop a UI pops up which allows the user to select what shop to go to
The help command
- fixed that command groups were not shown before
- the main menu uses fields instead of description now
- it is now possible to return to the help command in a group menu by clicking on the "Menu" button
Premium
- a dynamic check was implemented automatically updating patreons every 2 minutes by fetching the pattern api
- Premium users can now add premium guilds. How many is determined by the premium rank
- premium users can use
weekly
to gain a weekly lootbox
lootboxes
- lootboxes can be bought in the lootbox shop and are also earned every 5th time someone votes for Killua or with
k!weekly
by premium users - you can open a lootbox with
k!open
- opening lootboxes allows you to choose fields from a 5x5 square which can contain rewards. To save rewards you can click "Save rewards" because when you click on a button with a bomb behind it, all rewards are lost!
- you can get chances of lootboxes and info about them with
k!boxinfo <box_id>
Games
- games now have their own category and file
- two more games were added
k!count
a counting where where you need to remember numbers in the right orderk!trivia
gives random trivia questions and Jenny as reward
- the rps code was once again optimised and now uses buttons and selects
New responses
hug: +6
pat: +6
slap: +4
tickle: +6
poke: +7
topics: +105
8ball: +8
Other improvements
- new commands
ajit
andflash
were added as pxlapi added those as endpoints - added
spin
which spins an image in a circle you give to it - the paginator was improved several times now also supporting subclassing
- there was a file added called
setup.py
which makes it easier for contributors to set up the database - avatars being a horrible quality has been fixed
k!novel
has been optimised- a helper function was added which sends random tips with a 5% chance on specific commands
Bug fixes
- fixed an issue where two command groups were not displayed in the help command
- fixed all possible @ everyone exploits
- fixed todo lists being broken at multiple places
- fixed random failures when trying to remove/add cards
- avatars being very bad quality in all commands that used them
- not being able to view older updates with
update
- the
usage
command not taking command groups into consideration
If anyone is wondering on the net effect of caching classes, this shows the amount of requests to the database before and after the update (which was pulled at 5 pm)