2.3.3 • Published 8 months ago
@sopia-bot/core v2.3.3
@sopia-bot/core
Spoon radio api wrapper https://www.spooncast.net/.
Install
npm install @sopia-bot/core
or
yarn add @sopia-bot/core
Usage
import {
SpoonClient,
Country,
SnsType,
LiveEvent,
} from '@sopia-bot/core';
(async () => {
const spoon = new SpoonClinet('DeviceUUID');
spoon.country = Country.KOREA;
await spoon.init();
await spoon.login('Your ID', 'Your Password', SnsType.PHONE);
const socket = await spoon.api.lives.join(#Live);
socket.on(LiveEvent.LIVE_JOIN, (e) => {
// do something.
...
socket.message('Message');
});
socket.on(LiveEvent.LIVE_MESSAGE, (e) => {
// sender = e.author
});
})();
2.3.2
8 months ago
2.3.3
8 months ago
2.3.1
1 year ago
2.3.0
1 year ago
2.2.5
2 years ago
2.2.6
2 years ago
2.2.4
2 years ago
2.2.1
2 years ago
2.2.0
2 years ago
2.2.3
2 years ago
2.2.2
2 years ago
2.1.13
2 years ago
2.1.12
2 years ago
2.1.11
2 years ago
2.1.9
2 years ago
2.1.10
2 years ago
2.1.6
3 years ago
2.1.5
3 years ago
2.1.8
3 years ago
2.1.7
3 years ago
2.1.4
3 years ago
2.1.3
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago