2025-03-28 22:51:50 +00:00
2025-03-28 17:44:11 -04:00
2025-03-08 16:34:22 -05:00
2025-03-28 17:44:23 -04:00
2025-03-08 16:34:22 -05:00
2025-03-08 16:34:22 -05:00
2025-03-08 16:34:22 -05:00
2025-03-08 16:34:22 -05:00
2025-03-28 17:52:52 -04:00

swiftspiracy

A playful Discord bot that sends random praises and (occasionally) a conspiracy theory — and cleans up after itself.

Setup

Configuration

Create a .env file in the root of your project with the following keys:

  • DISCORD_BOT_TOKEN: Your bot token from the Discord developer portal.

  • DISCORD_CHANNEL_ID: The ID of the channel where the bot should send messages.

  • SEND_MESSAGE_INTERVAL_MIN: Minimum interval between messages (as an integer).

  • SEND_MESSAGE_INTERVAL_MAX: Maximum interval between messages (as an integer).

  • SEND_MESSAGE_UNIT: Time unit for the interval. Acceptable values: "second", "seconds", "minute", "minutes", "millisecond", "milliseconds".

  • DELETE_CONSPIRACY_DELAY: Time to wait before deleting a conspiracy message. Use Go duration format (eg "3s", "500ms", "1m").

  • CONSPIRACY_PROBABILITY: Probability (from 0.0 to 1.0) that a conspiracy message is sent after a praise. Eg, 0.4 = 40% chance.

You can view the .env-sample as an example.

Notes

  • The bot gracefully shuts down on CTRL+C.
S
Description
TPH April Fools 2025 Bot
Readme Apache-2.0
92 KiB
Languages
Go 84.7%
Makefile 12.7%
Dockerfile 2.6%