Nonchalantly Performs Magic

    context-converter

    4.0.1 • Public • Published

    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

    Install

    npm i context-converter

    DownloadsWeekly Downloads

    6

    Version

    4.0.1

    License

    ISC

    Unpacked Size

    29.2 kB

    Total Files

    34

    Last publish

    Collaborators

    • surfingpikachu