1
1
mirror of https://gitlab.com/ceda_ei/Zeeth-Naaw-Bot synced 2025-10-30 01:40:05 +01:00

Add /update

This commit is contained in:
2018-04-05 11:04:45 +05:30
parent d49d6fa764
commit ad73619959
2 changed files with 10 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ $chain = get_longest_chain();
$chain_string = chain_to_string($chain);
$saved_chain = include('chain.php');
if ($saved_chain != $chain_string) {
$send_message = "Chain Length: " . count($chain) . "\n" . $chain_string;
$send_message = "Chain Length: " . count($chain) . "\n\n" . $chain_string;
send_text($send_message);
$file = fopen('chain.php', 'w');
$contents = "<?php return '". $chain_string . "'; ?>";