msteams-node-applescript-shortcuts

``` npm i msteams-node-applescript-shortcuts@next ```

Usage no npm install needed!

<script type="module">
  import msteamsNodeApplescriptShortcuts from 'https://cdn.skypack.dev/msteams-node-applescript-shortcuts';
</script>

README

Execute Microsoft Teams shortcuts from Node.js via applescript

npm i msteams-node-applescript-shortcuts

Usage

import { MeetingsAndCalls } from 'msteams-node-applescript-shortcuts';

(async () => {
  await MeetingsAndCalls.mute(true);
})();

Commands

All commands accept the following arguments:

  • Reactivate (boolean - default: false): Reactivates the original application. If this is true, it will open Microsoft Teams, run the shortcut, and reactivates the original appliction again.

Accept

Accept a call coming in.

await MeetingsAndCalls.accept(true);

Decline

Decline a call coming in.

await MeetingsAndCalls.decline(true);

Mute

Toggles your microphone (mute/unmute) in a call/meeting

await MeetingsAndCalls.mute(true);

Camera

Toggles your camera in a call/meeting

await MeetingsAndCalls.camera(true);