4.0.1 • Published 3 years ago

context-converter v4.0.1

Weekly downloads
24
License
ISC
Repository
github
Last release
3 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
  • Twitch
  • Telegram
  • Twilio
const ContextConverter = require('context-converter');

const discord = new ContextConverter.DiscordContext()
const twitch = new ContextConverter.TwitchContext()
const twilio = new ContextConverter.TwilioContext()

Example Usage

const ContextConverter = require('context-converter');


discordClient.on("message", (data) => {
	let discordBotId = "123456789"
	let context = new ContextConverter.DiscordContext(data, discordBotId)
	consoel.log(context)

})

twitchClient.on("message", (channel, userstate, message, self) => {
	let twitchBotId = "123456789"
	let context = new ContextConverter.TwitchContext(channel, userstate, message, twitchBotId)
	console.log(context)
})

Context Schema

name - name of the channel/context (i.e. discord, twitch, telegram, etc)

user

message

server

channel

4.0.1

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago