diff --git a/Scripts/IPCustom.js b/Scripts/IPCustom.js new file mode 100644 index 0000000..949566c --- /dev/null +++ b/Scripts/IPCustom.js @@ -0,0 +1,20 @@ +// if ($response.statusCode != 200) { +// $done(Null); +// } + +// var body = $response.body; +// var obj = JSON.parse(body); + +function getRandomInt(max) { + return Math.floor(Math.random() * Math.floor(max)); +} + +const foods = ['🍎', '🍐', '🍊', 'πŸ‹', '🍌', 'πŸ‰', 'πŸ‡', 'πŸ“', '🍈', 'πŸ’', 'πŸ‘', 'πŸ₯­', 'πŸ…'] + +var title = foods[getRandomInt(foods.length)]; +var subtitle = 'δ»Šε€©εƒδ»€δΉˆζ°΄ζžœοΌŸ'; +var ip = '1.1.1.1'; +var description = 'description'+ip; + + +$done({title, subtitle, ip, description});