harmony/test/hook.ts
2021-04-04 11:22:47 +05:30

11 lines
240 B
TypeScript

import { Webhook } from '../mod.ts'
import { WEBHOOK } from './config.ts'
const webhook = await Webhook.fromURL(WEBHOOK)
console.log('Fetched webhook!')
webhook
.send('Hello World', {
name: 'OwO'
})
.then(() => 'Sent message!')