1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00

Make WidgetBot Great Again!

This commit is contained in:
David Young
2021-01-07 14:13:51 +13:00
committed by GitHub
parent da9b7ab5b8
commit 9f2c8bf060
3 changed files with 20 additions and 13 deletions

View File

@@ -1,11 +1,16 @@
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer>
const button = new Crate({
server: '396055506072109067',
channel: '396055506663374849',
color: '#795548',
indicator: false,
notifications: true
})
new Crate({
server: '396055506072109067',
channel: '396055506663374849',
color: 'black',
indicator: false,
notifications: true,
indicator: true,
timeout: 5000
})
button.notify('Need a 🤚? Hot sweaty geeks are waiting to chat to you! Click 👇')
</script>
// Display for 10 seconds + custom avatar
crate.notify({
content: 'Need a 🤚? Hot, sweaty geeks are waiting to chat to you! Click 👇',
timeout: 5000,
avatar: 'https://avatars2.githubusercontent.com/u/1524686?s=400&v=4'
})