harmony/src/test/hook.ts

9 lines
240 B
TypeScript
Raw Normal View History

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!')