Skip to content

Comments

Add: command ~addcustomresponse #315#352

Open
aleaffallingintothedarkness-c12 wants to merge 1 commit intoPuzzleTechHub:mainfrom
aleaffallingintothedarkness-c12:Issue-#315-New-command-customresponse
Open

Add: command ~addcustomresponse #315#352
aleaffallingintothedarkness-c12 wants to merge 1 commit intoPuzzleTechHub:mainfrom
aleaffallingintothedarkness-c12:Issue-#315-New-command-customresponse

Conversation

@aleaffallingintothedarkness-c12
Copy link
Collaborator

@aleaffallingintothedarkness-c12 aleaffallingintothedarkness-c12 commented Jan 4, 2026

Works the same as ~addcustomcommand except it's stored in the db with "RANDOM_RESPONSE:" prefix telling bot to treat it random

if there is interest for weighted responses please tell me

prefix is stored in constants.py
removed by ~rmcustomcommand as it's just a custom function

i think i got the aliasing correct

#315

could add functionality for random reaction if needed (borrow ~emoji)

Works the same as ~addcustomcommand except it's stored  in the db with "RANDOM_RESPONSE:" prefix telling bot to treat it random

if there is interest for weighted responses please tell me

prefix is stored in `constants.py`
removed by ~rmcustomcommand as it's just a custom function

i think i got the aliasing correct

PuzzleTechHub#315

could add functionality for random response if needed (borrow ~emoji)
@aleaffallingintothedarkness-c12
Copy link
Collaborator Author

image image

@aleaffallingintothedarkness-c12 aleaffallingintothedarkness-c12 changed the title Add: command ~addcustomresponse Add: command ~addcustomresponse #15 Jan 4, 2026
@aleaffallingintothedarkness-c12 aleaffallingintothedarkness-c12 changed the title Add: command ~addcustomresponse #15 Add: command ~addcustomresponse #315 Jan 4, 2026
@TheOriginalSoni TheOriginalSoni added the Ready for Review For PRs that are ready to be reviewed and potentially merged label Jan 5, 2026
@TheOriginalSoni
Copy link
Collaborator

TheOriginalSoni commented Jan 7, 2026

Something about this implementation looks funky. There's no need to add a new constant for this, I'm not sure what this CUSTOM_RESPONSE_PREFIX does.

We could bunt it to post-MH26, we'll look at this properly and implement it well.

@TheOriginalSoni TheOriginalSoni added Needs more work For PRs that need some improvement or implementation before merging and removed Ready for Review For PRs that are ready to be reviewed and potentially merged labels Jan 7, 2026
@aleaffallingintothedarkness-c12
Copy link
Collaborator Author

It writes to the custom command DB with the prefix so the bot knows it's a custom response

It's a cheap implementation but the only way around it is by adding another another column in the DB

I can do that if you'd like

@aleaffallingintothedarkness-c12 aleaffallingintothedarkness-c12 added Ready for Review For PRs that are ready to be reviewed and potentially merged and removed Needs more work For PRs that need some improvement or implementation before merging labels Jan 8, 2026
@TheOriginalSoni
Copy link
Collaborator

Yes, let's add a new column for it. I don't like the current way, it's too clunky and not easy to extend if we want to expand functionality

@TheOriginalSoni TheOriginalSoni added Needs more work For PRs that need some improvement or implementation before merging and removed Ready for Review For PRs that are ready to be reviewed and potentially merged labels Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs more work For PRs that need some improvement or implementation before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants