This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctx.api.config.use((prev, method, payload) => { | |
if (isPayloadOfType(payload, method, 'sendMessage')) { | |
// payload is now of type Payload<'sendMessage', R> | |
payload.reply_markup = { | |
...payload.reply_markup, | |
keyboard: numberKeyboard.build(), | |
}; | |
} | |
return prev(method, payload); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xargs -a packages.txt apt -qq list | grep -v "\[install" | awk '$3 == "amd64" {print $1}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
SoSciTools.submitButtonsHide(); | |
SoSciTools.attachEvent(window, 'load', function () { | |
let audio = document.getElementsByTagName('audio')[0]; | |
audio.onended = () => { | |
window.setTimeout(SoSciTools.submitButtonsDisplay, 1000); | |
}; | |
}); | |
</script> |