Releases: KruASe76/Codenames-bot
Releases · KruASe76/Codenames-bot
Version 2.2.1
New
- Multiple games on the same server support
Fixes
- No more duplicate fields in captains' DMs
- If a user calls a command in bot's DMs, they also will be added to the database (to keep custom prefix and language)
help
will not display server-only command when called in bot's DMs- Typo in russian localisation
- Other fixes
Technical
- Now using Pipenv as dependency manager and runner
- Separate maps for interface languages and game languages
- Some code formatting
Version 2.2
Registration revamp
- Single
game
command instead ofregister
,leave
,players
andclear
- Dynamic player list in an embed with buttons to register (and leave), start the game and cancel the registration below
- Confirmations of starting the game and of cancelling the registration
Fixes
000
(message to finish the game prematurely) now is listened from every player
(earlier was listened only from the players of team whose turn it was)
Technical
- Deletion of columns
players
,team1
,team2
fromguilds
table of database
Sad
- First easter egg deletion
Version 2.1
New
- Slash commands! (alongside existing text commands)
- Slash command descriptions (with localization, depends on the Discord UI language)
- Slash command autocomplete
Changes
- Language setting using buttons
- Game language setting using reactions
Fixes
- Inability to change language in DMs
- Other minor fixes
Technical
- Now using extensions
- Hew
help
command logic usingdiscord.Parameter
- Modified project structure
- Docstrings in
util.py
,generation.py
- Other improvements
From pre-release
New
- Small easter egg :)
Changes
- Only user who started the game can choose the language for the dictionary now
Fixes
- Brought back addition and deletion of servers to the database - this could cause bot not working on new servers
Technical
- Update to
python 3.11
anddiscord.py 2.1
- Asynchronous
Bot
setup (via subclassing) - Using
pathlib
instead ofos.path
Database
is a singleton now- Deletion of duplicate ~300 lines of code (in the game mainloop) (yeah, I finally have realized how to avoid this)
- Much optimization
- Docstrings for
Database
methods
Version 2.1-pre
New
- Small easter egg :)
Changes
- Only user who started the game can choose the language for the dictionary now
Fixes
- Brought back addition and deletion of servers to the database - this could cause bot not working on new servers
Technical
- Update to
python 3.11
anddiscord.py 2.1
- Asynchronous
Bot
setup (via subclassing) - Using
pathlib
instead ofos.path
Database
is a singleton now- Deletion of duplicate ~300 lines of code (in the game mainloop) (yeah, I finally have realized how to avoid this)
- Much optimization
- Docstrings for
Database
methods
Version 2.0
New
- Localizations support
- Russian localization
- Custom prefixes in DMs
- "Playing since" field in player statistics
- Captain filed sending to the game text channel at the end of the game
- Bot avatar
Fixes
- Members who are not playing can affect voting for the dictionary/captain
- Captain move verification bug
- Double field sending if a word without team is last opened
Technical
- Complete project structure overhaul
- Switch to
aiosqlite
fromsqlite3
- Code readability improvement
- Fulfilled all (or almost all) PEP 8 warnings
- Big
README.md
update
Version 1.0.2
After Version 1.0.1
Bugfixes
- Stats command not working in DMs
- Possibly sending field from another game on another server
QOL
- Classes
Colors
andUltraHD
fromgeneration.py
do not need initialization anymore
After Version 1.0
Bugfixes
- Sending the field twice when the last opened word in a move is that team's word
Text
- Replaced "team play" with "team game" (I don't know how I wrote that :/)
QOL
- Corrected typo in a comment in
generation.py
, line 100
Version 1.0
Initial release
The fist version is finished
I found a Release button on GitHub, so.. why not? :)
I updated this release, so the GitHub's "Source code" attachment contains code from 1.0.2, and I attach old "source-code" archives