https://github.com/ryanfarber/context-converter
a tool for unifying multiple platform contexts into a single language.
https://github.com/ryanfarber/context-converter
Last synced: 22 days ago
JSON representation
a tool for unifying multiple platform contexts into a single language.
- Host: GitHub
- URL: https://github.com/ryanfarber/context-converter
- Owner: ryanfarber
- Created: 2020-06-07T12:45:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T05:21:55.000Z (about 4 years ago)
- Last Synced: 2025-09-23T19:30:05.002Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# context-converter

a tool for converting different channel contexts into a unified context
---
***UNDER DEVELOPMENT! NOT FOR PRODUCTION USE***
## Current Supported Platforms
- Discord
- Facebook Messenger
- iMessage
- Telegram
- Twilio
- Twitch
```javascript
const ContextConverter = require("@ryanforever/context-converter")
const discord = new ContextConverter.DiscordContext()
```
## Example Usage
```javascript
const { DiscordContext, TwitchContext } = require("@ryanforever/context-converter")
discordClient.on("message", (data) => {
let discordBotId = "123456789"
let context = new DiscordContext(data, discordBotId)
console.log(context)
})
twitchClient.on("message", (channel, userstate, message, self) => {
let twitchBotId = "123456789"
let context = new TwitchContext(channel, userstate, message, twitchBotId)
console.log(context)
})
````