-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /hidealtstext command #3750
Conversation
Maybe a separate |
What should that say in the chat? Something like, |
5ecd146
to
844a172
Compare
Updated |
Well, not literally
|
|
It doesn't necessarily even need text |
d60fa4b
to
8c7277c
Compare
Updated |
chat-commands.js
Outdated
this.add('|unlink|' + hidetype + userid); | ||
if (userid !== toId(this.inputUsername)) this.add('|unlink|' + hidetype + toId(this.inputUsername)); | ||
if (cmd === 'hidealtstext' || cmd === 'hidetextalts') { | ||
this.addModCommand(`${targetUser.name}'s alternate account's messages were cleared from ${room.title} by ${user.name}.`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[USER]'s alts' messages were...
chat-commands.js
Outdated
this.add('|unlink|' + hidetype + userid); | ||
if (userid !== toId(this.inputUsername)) this.add('|unlink|' + hidetype + toId(this.inputUsername)); | ||
if (cmd === 'hidealtstext' || cmd === 'hidetextalts') { | ||
this.addModCommand(`[${targetUser.userid}]'s alts' messages were cleared from ${room.title} by ${user.name}.`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this should be targetUser.userid
here instead of targetUser.name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...by "[USER]" I meant ${targetUser.name}
not [${targetUser.userid}]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... oh
Updated |
81a5f29
to
a79d831
Compare
When a user is spamming, often times they are doing so under several accounts. When this happens, a staff member has to manually hide each alts messages in the room, which takes up one line of the chat for each alt. This command makes these cases easier and less-spammy for the chat.
Sorry for the confusion, does this look better? |
this.add('|unlink|' + hidetype + userid); | ||
if (userid !== toId(this.inputUsername)) this.add('|unlink|' + hidetype + toId(this.inputUsername)); | ||
if (cmd === 'hidealtstext' || cmd === 'hidetextalts') { | ||
this.addModCommand(`${targetUser.name}'s alts' messages were cleared from ${room.title} by ${user.name}.`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this only appear to staff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has to add something besides the |unlink|hide|
messages to the room in order for them to appear to new users joining the room though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm
When a user is spamming, often times they are doing so under several accounts. When this happens, a staff member has to manually hide each alts messages in the room, which takes up one line of the chat for each alt. By doing this, it automatically does it on the same line as the lock message at the same time, which both clutters up the chat less and makes it easier on the staff
PREVIEW: