Automatical Whitelister from node.js to 000webhost.php

So i’ve been trying to make a discord.js bot when a person with <@discordid> types $whitelist (my ip)
then it changes only the

$ip = array(‘ip address’,);

from the main.php

i’ve been trying to make this for 2 days but im just bad at node.js, pyton and all this stuff, i used to script roblox lua…