diff --git a/bot/bot/bot.csproj b/bot/bot/bot.csproj index 7ead100..23edd6c 100644 --- a/bot/bot/bot.csproj +++ b/bot/bot/bot.csproj @@ -31,6 +31,9 @@ prompt 4 + + bot.Bot + dll\log4net.dll diff --git a/www/auto.php b/www/auto.php index 335f568..0123b46 100644 --- a/www/auto.php +++ b/www/auto.php @@ -7,7 +7,7 @@ if($_GET['del']) { if($_POST["editId"]) { // TODO update this - mysql_query("UPDATE `responses` SET `conditions`='". mysql_real_escape_string($c) ."', `respid`=". $_POST['resptype'] .", `parameters`='". mysql_real_escape_string($_POST['parameters']) ."', `cooldown`=". (($_POST['cdd']==0)?-1:$_POST['cooldown']) ." WHERE `id`=". $_POST['editId']) or die(mysql_error()); + mysql_query("UPDATE `autonomous` SET `conditions`='". mysql_real_escape_string($c) ."', `respid`=". $_POST['resptype'] .", `parameters`='". mysql_real_escape_string($_POST['parameters']) ."', `cooldown`=". (($_POST['cdd']==0)?-1:$_POST['cooldown']) ." WHERE `id`=". $_POST['editId']) or die(mysql_error()); mysql_query("UPDATE `updater` SET `autonomous`=1 WHERE `id`=1"); header("Location: auto.php"); }