0.2.3 • Published 2 years ago

light-omega v0.2.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Light Omega

npm version dm node engine

Install:

> npm i light-omega # yarn add light-omega

Example

const { createClient } = require('light-omega');

// client的大部分函数需要在ready事件之后才能执行
omg.on('omega.ready', onReady);

async function onReady() {
    // 在这里随便干点什么
    const res = await omg.sendPacket('get_players_list', {});
    console.log(JSON.stringify(res));
    const player = await omg.getPlayerByName(omg.bot_name);
    console.log(player);
    const echo = await omg.sendPacket('echo', {
        message: 'hello, light-omega!'
    });
    console.log(echo);
}

Docs

coming soon...

Chat

group:766363535

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

1.0.0

2 years ago