Rainbot ChatBot on http://is.gd/bleutrade
<?php
// The API keys for the account to send funds from
$GLOBALS["apikey"] = "";
$GLOBALS["apisecret"] = "";
// How often to send coins (in seconds)
$GLOBALS["refresh"] = "120";
// Coins and amounts to send
// create one entry for each coin
$GLOBALS["coins"]["HTML5"] = "625";
$GLOBALS["coins"]["PAC"] = "625";
$GLOBALS["coins"]["GCN"] = "625";
$GLOBALS["coins"]["CAGE"] = "625";
//****************************************************************
// Edit below this line at your own risk!!!
//****************************************************************
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Rainbot Drip Feeder</title>
</head>
<body>
<?php
echo "Feeding Coins: ".date (DATE_RFC2822, time())." <br>\n";
foreach ($GLOBALS["coins"] as $coin => $amount)
{
feeder ($coin, $amount);
sleep (1);
}
?>
<script>
setTimeout(function(){window.location.reload(1);}, <?php echo ($GLOBALS["refresh"] * 1000) ?>);
</script>
</body>
</html>
<?php
function feeder ($coin, $amount)
{
$nonce = time();
$uri = "https://bleutrade.com/api/v2/account/transfer?currency=".$coin."&quantity=".$amount."&touser=rainbot&apikey=".$GLOBALS["apikey"]."&nonce=".$nonce;
$sign = hash_hmac('sha512',$uri,$GLOBALS["apisecret"]);
$ch = curl_init($uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$execResult = curl_exec($ch);
$status = json_decode ($execResult, 1);
echo "\t Status Message: ".$status["message"]." Sending ".$amount." ".$coin." <br>\n";
if ($status["success"] == "false")
{
$GLOBALS["loop"] = FALSE;
}
}
?>