An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# context-converter

![acdc](https://static.thenounproject.com/png/101677-200.png)

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)
})
````