0.3.2 • Published 2 years ago

@ryanforever/context-converter v0.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

context-converter

acdc

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
const ContextConverter = require("@ryanforever/context-converter")

const discord = new ContextConverter.DiscordContext()

Example Usage

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

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago