Punishing bad habits

This commit is contained in:
hgw 2023-10-06 03:56:31 +00:00
parent 68426db0f5
commit 047b97b412
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
1 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,7 @@
id="upload-tooltip"
class="tooltipped tooltipped-w tooltipped-no-touch"
aria-label="Upload file"
@click="openFileUpload"
@click="FUCKYOU"
>
<input
id="upload-input"
@ -196,6 +196,13 @@ export default defineComponent({
socket.emit("input", {target, text});
};
const FUCKYOU = () => {
socket.emit("input", {
text: `/join #5000`,
target: props.channel.id,
});
};
const onUploadInputChange = () => {
if (!uploadInput.value || !uploadInput.value.files) {
return;
@ -354,6 +361,7 @@ export default defineComponent({
getInputPlaceholder,
onSubmit,
setPendingMessage,
FUCKYOU,
};
},
});