wickrio-bot-api
Advanced tools
Comparing version 5.38.11 to 5.38.13
{ | ||
"name": "wickrio-bot-api", | ||
"version": "5.38.11", | ||
"version": "5.38.13", | ||
"description": "The official Wickr IO Bot API Framework", | ||
@@ -5,0 +5,0 @@ "main": "WickrIOBot.js", |
@@ -214,2 +214,12 @@ const WickrIOAPI = require('wickrio_addon'); | ||
var vGroupID = message.vgroupid; | ||
var convoType = ''; | ||
// Determine the convo type (1to1, group, or room) | ||
if (vGroupID.charAt(0) === 'S') | ||
convoType = 'room'; | ||
else if (vGroupID.charAt(0) === 'G') | ||
convoType = 'groupconvo'; | ||
else | ||
convoType = 'personal'; | ||
if (message.file) { | ||
@@ -226,3 +236,4 @@ var isVoiceMemo = false; | ||
'isVoiceMemo': isVoiceMemo, | ||
'voiceMemoDuration': voiceMemoDuration | ||
'voiceMemoDuration': voiceMemoDuration, | ||
'convotype': convoType | ||
}; | ||
@@ -235,3 +246,4 @@ } else { | ||
'userEmail': sender, | ||
'isVoiceMemo': isVoiceMemo | ||
'isVoiceMemo': isVoiceMemo, | ||
'convotype': convoType | ||
}; | ||
@@ -243,4 +255,3 @@ } | ||
var command = '', | ||
argument = '', | ||
convoType = ''; | ||
argument = ''; | ||
if (message.control) | ||
@@ -257,9 +268,2 @@ return; | ||
} | ||
if (vGroupID.charAt(0) === 'a' || vGroupID.charAt(0) === 'c' || vGroupID.charAt(0) === 'd') | ||
convoType = 'personal'; | ||
else if (vGroupID.charAt(0) === 'G') | ||
convoType = 'groupconvo'; | ||
else | ||
convoType = 'room'; | ||
var parsedObj = { | ||
@@ -266,0 +270,0 @@ 'message': request, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11967
300