diff options
Diffstat (limited to 'scenario')
-rw-r--r-- | scenario/client.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scenario/client.js b/scenario/client.js index 38412c5..68203e3 100644 --- a/scenario/client.js +++ b/scenario/client.js @@ -1,9 +1,9 @@ -function scenar(ns, emote, cb) { - if (!require('@electron/remote').getCurrentWindow().voice) { return; }; - - min = 0; - max = lang.scenario[ns].length - 1; - id = Math.floor(Math.random() * (max - min + 1) + min); - - require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb}); -} +function scenar(ns, emote, cb) {
+ if (!require('@electron/remote').getCurrentWindow().voice) { return; };
+
+ min = 0;
+ max = lang.scenario[ns].length - 1;
+ id = Math.floor(Math.random() * (max - min + 1) + min);
+
+ require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb});
+}
|