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

View File

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