fishpi 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,16 +32,16 @@ let fish = new FishPi(apiKey);
32
32
  console.dir(await fish.info());
33
33
 
34
34
  // 获取用户自定义表情包
35
- let emojis = fish.emoji.get();
35
+ let emojis = await fish.emoji.get();
36
36
  // 获取默认表情包
37
37
  let defaultEmoji = fish.emoji.default;
38
38
 
39
39
  // 监听聊天室消息
40
40
  fish.chatroom.addListener((ev:any) => console.dir(ev));
41
41
  // 向聊天室发送信息(需要登录)
42
- fish.chatroom.send('Hello World!');
42
+ await fish.chatroom.send('Hello World!');
43
43
  // 向聊天室发送红包
44
- fish.chatroom.redpacket.send({
44
+ await fish.chatroom.redpacket.send({
45
45
  type: 'random';
46
46
  money: 32;
47
47
  count: 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fishpi",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A Package to use API of fishpi.",
5
5
  "main": "./lib/src/index.js",
6
6
  "files": [