Added support for multiple processing emojis, fixed issue with local image processing
This commit is contained in:
parent
4e4ae3613f
commit
ebfab817d7
4 changed files with 146 additions and 134 deletions
|
@ -2,6 +2,7 @@ const util = require("util");
|
|||
|
||||
// random(array) to select a random entry in array
|
||||
exports.random = (array) => {
|
||||
if (!array || array.length < 1) return null;
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue