mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2026-04-09 02:43:35 +00:00
dry it up
This commit is contained in:
11
utils/clip.js
Normal file
11
utils/clip.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function recordClip(channel) {
|
||||
return new Promise((resolve, reject) => {
|
||||
channel.objects.meld.sendCommand('meld.recordClip').then(() => {
|
||||
resolve('Clip command sent successfully.')
|
||||
}).catch((err) => {
|
||||
reject(err)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export { recordClip }
|
||||
11
utils/screenshot.js
Normal file
11
utils/screenshot.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function recordScreenshot(channel) {
|
||||
return new Promise((resolve, reject) => {
|
||||
channel.objects.meld.sendCommand('meld.screenshot').then(() => {
|
||||
resolve('Screenshot command sent successfully.')
|
||||
}).catch((err) => {
|
||||
reject(err)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export { recordScreenshot }
|
||||
Reference in New Issue
Block a user