storycraft / node-kakao

Loco protocol compatible library
MIT License
410 stars 115 forks source link

Loop Pending Promise. #18

Closed ghost closed 4 years ago

ghost commented 4 years ago

Promise still pending. image

Only Pending.

seia-soto commented 4 years ago

I don’t think this issue is well done and you may need to use IP assigned for home network as well. I think you should give some more information such as code snippet to resolve this issue.

ghost commented 4 years ago

I don’t think this issue is well done and you may need to use IP assigned for home network as well. I think you should give some more information such as code snippet to resolve this issue.

const Module = require('node-kakao'); let TalkClient = Module.TalkClient; let client = new TalkClient('DESKTOP-NQ49GHF');

KakaoAPI = Module.KakaoAPI; ChatType = Module.ChatType; ChatMention = Module.ChatMention; Chat = Module.Chat; ChatChannel = Module.ChatChannel; ChatUser = Module.ChatUser; ChatFeed = Module.ChatFeed;

id = '--'; pass = '--'; uuid = --;

client.login(id, pass, uuid);

client.on('message', (chat = Chat) => { if (chat.Text === 'F테스트') { chat.replyText('안녕하세요 ', new ChatMention(chat.Sender)); // Ex) 안녕하세요 @storycraft //chat.Channel.sendTemplate(new AttachmentTemplate(ReplyAttachment.fromChat(chat), '안녕하세요')); // 답장형식 } });

storycraft commented 4 years ago

Tested with same code. It works as intended.

client.LocoLogon === true F테스트 -> 안녕하세요 @storycraft

ghost commented 4 years ago

Tested with same code. It works as intended.

client.LocoLogon === true F테스트 -> 안녕하세요 @storycraft

Nani? Im Only Pending and LocoLogon == false

seia-soto commented 4 years ago

If you're connecting from runkit or similar platforms, the connection to KakaoTalk may be blocked because your connection seems abnormal and it cannot be made from a normal user. So, you may test your code in a more stable environment such as your home. There is no issue detected even for me.

ghost commented 4 years ago

It keeps turning off even if I log in from the node.

ghost commented 4 years ago

Win