!botreport

Published  Jul 11, 2011
Updated  Jul 12, 2011
0  8

Description

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 ! } 
}

Comments

Sign in to comment.
Ryahn   -  Aug 28, 2013

I am having an issue where it gives this http://gyazo.com/e16601c62e7c57974b25d0e625b7a957.png

Meta  -  Aug 29, 2013

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)

Sign in to comment

cj42057   -  May 27, 2013

Here's a screenshot of the bot script in use.

 Respond  
cj42057   -  May 27, 2013

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)!
}
}

 Respond  
Gran_lider_negro   -  Jan 31, 2012

this snipp is work for jtv or not

 Respond  
Dani_l11   -  Jul 12, 2011

.....?

I'm just saying that, using this snippet, your bot is very likely to quit because of excess flood. -> Edit the script, so it won't happen (To the original poster).

 Respond  
cofvempire   -  Jul 12, 2011

Excess flood has nothing to do with the bot, it's the IRC server.

some idiot (or network admin, whatever you want), has set the receiveq (maximum bytes send to the server) too low, so the bot can't message you everything.

 Respond  
Dani_l11   -  Jul 11, 2011

Excess flood..

 Respond  
PyThOn   -  Jul 11, 2011

Looks interesting.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.