@stacksjs/chat
Version:
Easily interact with chat APIs.
83 lines (49 loc) โข 1.63 kB
Markdown
is driver system for sending messages through chat apps.
- ๐ฆ Send Chats
```bash
bun install -d @stacksjs/chat
```
You may now use it in your project:
```ts
import * as chat from '@stacksjs/chat'
/* Then choose a driver. E.g for Slack */
const notification = chat.slack
notification.send(ChatOptions)
interface ChatOptions {
webhookUrl: string
content: string
}
```
Drivers are configured with the following environment variables:
- None
```bash
SLACK_APPLICATION_ID=SAID123
SLACK_CLIENT_ID=SCID123
SLACK_SECRET_KEY=SSK123
```
```bash
bun test
```
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
[ ](https://github.com/stacksjs/stacks/discussions)
For casual chit-chat with others using this package:
[ ](https://discord.gg/stacksjs)
Many thanks to the following core technologies & people who have contributed to this package:
- [Chris Breuer](https://github.com/chrisbbreuer)
- [All Contributors](../../contributors)
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
Made with ๐
Stacks Chat