If some cmds of ur bot will stop to work , other users can send a !botreport to send u a report msg. Like :
<@TochA>!botreport !slap cmd dont works !
<@zyga> Ty for send report TochA , TochA will try to fix me as soon as possible !
on *:text:!botreport *:#: {
if ( $2- != $null ) {
set -u10 %flood [ $+ [ $nick ] ] $true
msg $chan 8,1Ty for send report $nick , <bot_owner_nick> will try to fix me as soon as possible !
msg <bot_owner_nick> ***************
msg <bot_owner_nick>1,4Error Report !
msg <bot_owner_nick> 3 $nick 1on14 $chan 1, 7reasson 1: $2-
msg <bot_owner_nick> **************
}
else { msg $chan Sorry $nick but to send 3report message 1u must give some reason/s ! }
}
I am having an issue where it gives this http://gyazo.com/e16601c62e7c57974b25d0e625b7a957.png
adding the code -> write -il1 botreport_log.txt $nick on $chan : reason : $2-
one line before the timer will cause the script to log all reported errors to a
text file located in the bots $mircdir. Also the 'else' statement was not working
for me so I just replaced the code with the following and had no issues.
Changed:
else { msg $chan Sorry $nick but to send 3report message 1u must give some reason/s ! }
}
to
on :TEXT::#: {
if (!botreport iswm $1-) {
msg $chan Sorry $nick but to send an error report you must give some reason(s)!
}
}
Any instance of in the code should be replaced with your actual nickname.
However, the line that reads:
msg 1,4Error Report !
should be changed to:
msg 1,4Error Report !
(and then, of course, replace with your nick)