<script src="https://cdn.jsdelivr.net/npm/@widgetbot/[email protected]" async defer>
const button = new Crate({
server: '299881420891881473',
channel: '355719584830980096',
glyph: ['https://thecatapi.com/api/images/get?format=src&type=gif&' + Date.now(), '100%']
})
// Random cat pictures every 1.5s
setInterval(() => {
button.options.glyph = ['https://thecatapi.com/api/images/get?format=src&type=gif&' + Date.now(), '100%']
button.notify({
content: 'Background updated',
timeout: 1000
})
}, 1500)
</script>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.