Skip to content

Releases: DLMousey/sarcasm-bot

[BETA] Sarcasm Bot 1.0

10 Apr 23:20

Choose a tag to compare

Pre-release

This release includes a large overhaul of sarcasm bot's general structure, moving things into more modules and making a jump from discord.js version 11 to 14, which has facilitated re-writes of many key features.

Additions

  • Added an audit log function, powered by a sqlite database running in the container. This command (typically !audit <sarcasm-bot-message-id>) allows you to see which user's command resulted in a sarcasm bot message along with the original input. Unfortunately this feature has been required after reports of sarcasm bot being used for abuse in the wild.

PLEASE NOTE the sqlite database in the container is stored in /tmp meaning it'll be cleared after 10 days on linux based hosts, and will also be cleared and re-created if the container restarts. Support for external databases will be coming in a future release.

🛠️ Changes

  • Temporarily dropped support for lesser-known commands, namely !b, !clap and the original !mock @user which has fallen out of favour after the introduction of mocking by id and inline mocks. These will be fixed in a future update but since they're just fun extras they have been dropped to preserve release velocity.

Obligatory pre-release warning

This release has been tested quite extensively locally but it cannot be guaranteed that other functionality has been broken.

Add alternateCase method, improve code DRYness

01 Mar 02:03
f1696a8

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.0...0.4.1

Inline Mockery

25 Feb 23:53
624d384

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.0...0.4.0

Add mockSingle command

20 Feb 23:05
7da566f

Choose a tag to compare

This release adds the ability to pass a specific message ID to be mocked rather than mentioning a user and retrieving the last message they typed.

What's Changed

New Contributors

Full Changelog: 0.2.0...0.3.0

Add rate limiting support

03 May 17:28

Choose a tag to compare

This release adds support for basic rate limiting - if a user is making requests too quickly the bot will silently dump them until enough time has passed between calls.

The default limit is 3 seconds between calls, this can be customised by setting the BOT_RATELIMIT environment variable when you run the bot like so;

docker run -d -e BOT_RATELIMIT=5 -e BOT_TOKEN=yourAuthToken -e BOT_PREFIX=! docker.pkg.github.com/dlmousey/sarcasm-bot/sarcasm-bot 

Fix invalid user IDs check

03 May 16:51

Choose a tag to compare

If a URL to a message was provided instead of a mention, the getUserId method would still return what it thought was a user id but was in fact a message id. A bodge has been added that'll throw an error if the parsed ID is greater than 18 characters in length.

Being able to mock a specific message would be a neat feature though so this will be added soon:tm:

Revert breaking changes

01 May 17:54

Choose a tag to compare

Reverts a PR that significantly altered many parts of the core logic that's made the bot unstable

Help Command

01 May 13:54

Choose a tag to compare

➕ Added

  • Help command at !help, lists of commands
  • Invalid command handler

Test Release

01 May 13:36
8ae3645

Choose a tag to compare

Something funky going on with github actions not running workflow on release.
Nothing to see here, just testing - move along

Docker Support

01 May 13:25

Choose a tag to compare

This release (the only current release) adds Docker support, see the readme for more info.