BamBam0077 |
17th December 2021 14:21 |
systembot script
Save As chatbot.php
PHP Code:
<?php
if($row[0] == '6' || '15'){
$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'if you would like to become a team member just send a pm to xo.', '".get_date_time()."', '36')"; SQL_Query_exec($query); }
?>
Edit:
Username = System
MESSAGE = If you would like...
ID = 36
FIND:
shoutbox.php inside shall be something similar to this:
PHP Code:
//INSERT MESSAGE if (!empty($_POST['message']) && $CURUSER) { $_POST['message'] = sqlesc($_POST['message']); $query = "SELECT COUNT(*) FROM shoutbox WHERE message=".$_POST['message']." AND user='".$CURUSER['username']."' AND UNIX_TIMESTAMP('".get_date_time()."')-UNIX_TIMESTAMP(date) < 30"; $result = SQL_Query_exec($query); $row = mysqli_fetch_row($result);
if ($row[0] == '0') {
$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', ".$_POST['message'].", '".get_date_time()."', '".$CURUSER['id']."')"; SQL_Query_exec($query); }
Stop dupe post for boysys
BEFORE LAST } ON PREVIOUS SCRIPT INSERT THIS MAYBE?
PHP Code:
if($row[0] < '6' || '15' ){
$query = "INSERT IGNORE INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'SystemAlert', 'if you would like to become a team member just send me a pm.', '".get_date_time()."', '2')"; SQL_Query_exec($query); }
https://images2.imgbox.com/97/38/apLFfDei_o.png
https://images2.imgbox.com/35/64/aAZVTb8c_o.png
|