Skip to content

SAMA-Communications/programmable-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PRs welcome! Discord Chat documentation

Programmable Chat Examples

This repository contains a collection of ready-to-use examples for the Programmable Chat feature.

Each example is a self-contained .js file that demonstrates how to extend chat behavior using JavaScript logic.

Structure

Each file in /handlers follows the format:

const handler = async (message, user, accept, resolve, reject, fetch) => {
  // Your logic here
};

export default await handler(env.MESSAGE, env.USER, env.ACCEPT, env.RESOLVE, env.REJECT, env.FETCH);

Usage

Copy the contents of an example file into your programmable chat editor, test it, and save.

You can find more details in the Programmable Chat Documentation.

Contributing

Got a useful snippet? Feel free to open a PR and share it with the community.

About

A set of ready chat handlers for programmable chat feature demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •