Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added awaitEvent() & getFriendStatus() + Temp fix for missing INITITAL_INVITE #52

Merged
merged 7 commits into from
Jun 20, 2019

Conversation

Terbau
Copy link
Contributor

@Terbau Terbau commented Jun 18, 2019

  • communicator.awaitEvent(event, filter, time)
// awaitEvent(event, filter, time)
// event = communicator events
// filter = function that returns bool
// time = Milliseconds before auto-shutdown and error 'TIMEOUT' is raised

const filter = m => m.friend.id === 'fortniteId';
try {
  let message = await app.communicator.awaitEvent('friend:message', filter, 60 * 1000);
  console.log(message.message);
} catch(err) {
  console.log(err)
}
  • communicator.getFriendStatus(id)
let status = await app.communicator.getFriendStatus(id);
  • Temporary fix for missing INITAL_INVITE.
    This works by creating an invite from status properties

@Terbau Terbau changed the title Added awaitEvent() & getStatus() + Temp fix for missing INITITAL_INVITE Added awaitEvent() & getFriendStatus() + Temp fix for missing INITITAL_INVITE Jun 18, 2019
@SzymonLisowiec SzymonLisowiec changed the base branch from master to develop June 20, 2019 19:02
@SzymonLisowiec SzymonLisowiec merged commit d580705 into SzymonLisowiec:develop Jun 20, 2019
@SzymonLisowiec
Copy link
Owner

Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants