Skip to content

Conversation

@ZYancey
Copy link
Contributor

@ZYancey ZYancey commented Oct 23, 2025

/smite

Temporarily prevents a user from using bot commands for one hour. Only administrators can successfully use this command - non-admins who attempt to use it will be smitten for 60 seconds. Administrators cannot be smitten, and attempting to smite the bot will result in the executor being smitten instead. Users who smite themselves receive a special response.

Screenshot 2025-10-23 at 1 51 51 PM

@ZYancey ZYancey self-assigned this Oct 23, 2025
@ZYancey ZYancey requested a review from a team October 23, 2025 19:52
@AverageHelper AverageHelper linked an issue Dec 6, 2025 that may be closed by this pull request
@AverageHelper AverageHelper moved this to Code Review in CS Bot Dec 6, 2025
@AverageHelper AverageHelper added the enhancement New feature or request label Dec 6, 2025
@AverageHelper AverageHelper linked an issue Dec 6, 2025 that may be closed by this pull request
);

const ODIN_SMITING_THOR_GIF =
'https://cdn.discordapp.com/attachments/781563734098575410/1083403217553084446/smite.gif?ex=68fb93df&is=68fa425f&hm=83b4a865179f0dd6fb1312f535c2a730673709734470c0095dd2a432908bfcba&';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link has expired already. We should instead provide the image file directly.

const ODIN_SMITING_THOR_GIF =
'https://cdn.discordapp.com/attachments/781563734098575410/1083403217553084446/smite.gif?ex=68fb93df&is=68fa425f&hm=83b4a865179f0dd6fb1312f535c2a730673709734470c0095dd2a432908bfcba&';
const WACK_IMAGE =
'https://i.kym-cdn.com/entries/icons/original/000/033/758/Screen_Shot_2020-04-28_at_12.21.48_PM.png';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link still works, but feels weird to rely on an external service for a file we may frequently access. We should provide this file directly as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe even convert to .webp for smaller storage, unless we have ppl using old versions of Safari lol

Copy link
Contributor

@AverageHelper AverageHelper Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should make a simple HTTP server in CSBot that serves static images like these ones 🤔


### /unsmite

**[Admin Only]** Removes the smite status from a user, restoring their ability to use bot commands immediately.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**[Admin Only]** Removes the smite status from a user, restoring their ability to use bot commands immediately.
**[Admin Only by default]** Removes the smite status from a user, restoring their ability to use bot commands immediately.


// Set up automatic unsmiting of users after 1 hour
// This will check every hour and unsmite anyone who has been smitten for over an hour
setupAutoUnsmiteCron(); // Default: '0 * * * *' (every hour)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since most users won't be smitten exactly at the top of the hour, this may result in users being smitten for at most 1h59m. This may be fine, but the README says "one hour". Should the doc be changed to something like "at least one hour", or should we do the timeout a different way?

Copy link
Contributor

@AverageHelper AverageHelper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Code Review

Development

Successfully merging this pull request may close these issues.

Slash Command - Smite

3 participants