harmony/test/hook.ts

12 lines
240 B
TypeScript
Raw Normal View History

2021-04-04 05:52:47 +00:00
import { Webhook } from '../mod.ts'
2020-12-02 12:29:52 +00:00
import { WEBHOOK } from './config.ts'
const webhook = await Webhook.fromURL(WEBHOOK)
console.log('Fetched webhook!')
webhook
.send('Hello World', {
name: 'OwO'
})
.then(() => 'Sent message!')