mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-11 04:33:02 +02:00
d->m: Presence
This commit is contained in:
parent
f98c30cac3
commit
8ad0117fd2
6 changed files with 70 additions and 1 deletions
|
@ -33,6 +33,8 @@ const mxUtils = require("../m2d/converters/utils")
|
|||
const speedbump = sync.require("./actions/speedbump")
|
||||
/** @type {import("./actions/retrigger")} */
|
||||
const retrigger = sync.require("./actions/retrigger")
|
||||
/** @type {import("./actions/set-presence")} */
|
||||
const setPresence = sync.require("./actions/set-presence")
|
||||
|
||||
/** @type {any} */ // @ts-ignore bad types from semaphore
|
||||
const Semaphore = require("@chriscdn/promise-semaphore")
|
||||
|
@ -369,5 +371,14 @@ module.exports = {
|
|||
*/
|
||||
async onExpressionsUpdate(client, data) {
|
||||
await createSpace.syncSpaceExpressions(data, false)
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {string} userID
|
||||
* @param {string} [status]
|
||||
*/
|
||||
async onPresenceUpdate(userID, status) {
|
||||
if (!status) return
|
||||
setPresence.setPresence(userID, status)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue