Skip to content

Commit

Permalink
say hello to npm again
Browse files Browse the repository at this point in the history
  • Loading branch information
storycraft committed Sep 12, 2020
1 parent 4f72f71 commit 1201938
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storycraft/node-kakao",
"version": "3.1.0-preview.0",
"name": "node-kakao",
"version": "3.1.0",
"description": "Loco protocol compatible library",
"main": "dist/index.js",
"scripts": {
Expand All @@ -16,9 +16,6 @@
"email": "[email protected]",
"url": "https://pancake.sh"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"license": "MIT",
"devDependencies": {
"@types/bson": "^4.0.0",
Expand Down
15 changes: 8 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![npm version](https://badge.fury.io/js/node-kakao.svg)](https://www.npmjs.com/package/node-kakao)
# NodeKakao - Loco protocol compatible library

Note: this implemention can stop working anytime.
Expand All @@ -17,7 +18,7 @@ Client can act differently unlike official client. Abusing this client can cause

Common code
```typescript
import { TalkClient, LoginError } from '@storycraft/node-kakao';
import { TalkClient, LoginError } from 'node-kakao';

let client = new TalkClient('TEST_CLIENT', 'random base64 device id');

Expand All @@ -32,7 +33,7 @@ client.login('[email protected]', '123456')

```typescript

import { Chat, ChatMention } from '@storycraft/node-kakao';
import { Chat, ChatMention } from 'node-kakao';

client.on('message', (chat: Chat) => {
let userInfo = chat.Channel.getUserInfo(chat.Sender);
Expand All @@ -50,7 +51,7 @@ client.on('message', (chat: Chat) => {

```typescript

import { Chat, ChatType } from '@storycraft/node-kakao';
import { Chat, ChatType } from 'node-kakao';
import * as fs from 'fs';

client.on('message', (chat: Chat) => {
Expand All @@ -75,7 +76,7 @@ client.on('message', (chat: Chat) => {

```typescript

import { Chat, SharpAttachment } from '@storycraft/node-kakao';
import { Chat, SharpAttachment } from 'node-kakao';

client.on('message', (chat: Chat) => {
let userInfo = chat.Channel.getUserInfo(chat.Sender);
Expand All @@ -90,11 +91,11 @@ client.on('message', (chat: Chat) => {
});
```

### join message
### Join message

```typescript

import { ChatChannel, ChatUser, FeedChat, OpenJoinFeed, InviteFeed } from '@storycraft/node-kakao';
import { ChatChannel, ChatUser, FeedChat, OpenJoinFeed, InviteFeed } from 'node-kakao';

client.on('user_join', (channel: ChatChannel, user: ChatUser, feed?: FeedChat<OpenJoinFeed | InviteFeed>) => {
let info = channel.getUserInfo(user);
Expand All @@ -108,7 +109,7 @@ client.on('user_join', (channel: ChatChannel, user: ChatUser, feed?: FeedChat<Op
### Web api only

```typescript
import { TalkApiClient, OpenRecommendStruct } from '@storycraft/node-kakao';
import { TalkApiClient, OpenRecommendStruct } from 'node-kakao';

let client = new TalkApiClient('TEST_CLIENT', 'random base64 device id');

Expand Down
1 change: 1 addition & 0 deletions src/kakao-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { AHeaderDecorator } from "./api/api-header-decorator";
* Copyright (c) storycraft. Licensed under the MIT Licence.
*/

// Deprecated and won't show on production
export class KakaoAPI {

static get InternalProtocol() {
Expand Down

0 comments on commit 1201938

Please sign in to comment.