Skip to content

Releases: r-Techsupport/TechSupportBot

v2023.08.13

13 Aug 15:06
667fa0c
Compare
Choose a tag to compare

Core features
The checking for registered channels log was moved to debug
Guild config can now change keys with a confirmation
API rate limits are now handled by the API calls themselves, not the command calls
Nicknames can now be modified to be ascii and markdown free automatically

Ducks
The duckQuotes.txt file was moved to a seperate folder
Duck kill and donate will fail sometimes
There is a long timeout on duck kill and donate to prevent abuse
The auto timeout on miss has a new check to prevent errors

Factoids
The loading factoid jobs log is now a debug log

Raw
Was removed

Relay
Messages being sent to IRC are being cut at 430 now
SASL connection is now properly done using ib3

Dependencies
ib3 added as a dependency
emoji -> 2.7.0
hypothesis -> 6.82.3
pip -> 23.2.1
pipenv -> 2023.7.23
pylint -> 2.17.5
mongodb -> 6.0.7
postgres -> 15.3-alpine

Other
Pylint now checks for all style warnings instead of just errors
Unused port forwards removed from docker compose file
The IP range used by the file has changed
The DEBUG option was added to the default.env
The config.yml file as been compeltely reformated
The linx and dumpdbg API URL have been moved to config.yml

v2023.07.22...v2023.08.13

v2023.07.22

22 Jul 11:35
0adc773
Compare
Choose a tag to compare

Core features
TS will now log role changes
Errors over 1000 characters will now be cropped in the channel deny message
Added type hints to base.BaseCog
Help menu is now sorted alphabetically
.bot is now inline
.bot shows IRC connection info
.reboot actually works now
All RabbitMQ features have been removed from the bot
Config patch is instantly applied now

Application
No longer sends data to IRC

ChatGPT
Add docstrings/comments
Fix a bug with a missing return
Some minor improvements/refactors

Directory
Has been removed

Duck
Fix missing space in DM when a miss occurs
Timeout now matches the configued cooldown
Fixed a small typo in the help message

DumpDBG
Won't fail silenty if no roles are set anymore

Embed
Minor code refactor

Emoji
Emoji now errors when reactions would be above 20

Factoids
New command: .factoid search. Search factoids for name and/or content
New command: .factoid flush. Admin only, clears cache
Delooping a factoid takes effect instantly now
Anyone with admin perms can now request hidden factoids using factoid all
Factoids with active loops can now be deleted or modified
If debug logs are enabled, invalid factoid calls are logged
Factoid all is now cached
Factoids can no longer be created with spaces in the name
Factoids can no longer have HTML tags in the name or text
Factoids that are too long now throw an error
Factoid fallback now works properly in both manual and looped calls
Factoid all now has some simple CSS styling
All factoids are now case insensitive
Factoids are actually modified in the db instead of being recreated
Aliases will not longer be deleted if forget is declined
Factoids will now reply to the invoker
Removed factoid response processing
Fixed some output inconsistencies

Hangman
Minor refactor

Logger
Will no longer show a discriminator of 0

Member
New Module
Anyone with manage roles can get a dump of all members with a given role

Protect
Make error responses from the bot say the correct negative action
Auto actions will now ping the offender again

Relay
Has been completely rewritten from scratch. IRC is now built directly into the bot
IRC links are now stored in postgres
New .irc ban command allows anyone with ban members to ban people on IRC
IRC embeds will now show hostmask

Role
Slash commands are now logged in bot events

Who
Shows a more descriptive error if no roles are setup
Slash commands are now logged in bot events

WYR
Major code refactor
Performance improvements

Dependencies
Locked pip version, starting with 23.2
Added bidict and irc as dependencies
Removed aio-pika
black -> 23.7.0
gitpython -> 3.1.32
hypothesis -> 6.82.0
pipenv -> 2023.7.11
pydantic -> 2.0.3
pytest-asyncio -> 0.21.1
pyyaml -> 6.0.1

Unit tests
Add a cleanup step in some tests to avoid conflict and start every test with a clean slate
Added a MockReaction object
Message now has a reactions variable and an add_reaction function
Added 4 new unit tests for emoji
Added 7 unit tests for WYR

Other
make devbuild has been Added
The Makefile will now use docker-compose or docker compose dynamically
Fixed make lint
Unused battle.net config items were removed from the default config
New IRC entries in the config.yml file have been added
RabbitMQ was removed from the docker container

4551f52...v2023.07.22