This package has been deprecated

Author message:

This package moved `@sopia-bot/core`.

sopia-core
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

sopia-core

Spoon radio core API https://www.spooncast.net/

Install

npm install sopia-core

or

yarn add sopia-core

Usage

import * as spoon from 'sopia-core';

(async () => {
    const sopia = new spoon.Client('DeviceUUID');
    await sopia.login('Your ID', 'Password', spoon.LoginType.PHONE);
    
    
    const socket = await sopia.liveManager.liveJoin(#Live);
    
    socket.on(spoon.LiveEvent.LIVE_JOIN, (e) => {
        // do something.
        ...
        socket.message('Message');
    });
    
    socket.on(spoon.LiveEvent.LIVE_MESSAGE, (e) => {
        // sender = e.author
    });
})();

Readme

Keywords

none

Package Sidebar

Install

npm i sopia-core

Weekly Downloads

16

Version

2.0.7

License

MIT

Unpacked Size

299 kB

Total Files

249

Last publish

Collaborators

  • tree-some