Line 33: WARNING: Unknown command "tls::init"
Line 34: WARNING: Unknown command "tls::socket"
Line 46: ERROR: Unknown variable "m00nie::youtube::regex"
Line 50: ERROR: Unknown variable "m00nie::youtube::key"
Line 84: ERROR: Unknown variable "m00nie::youtube::user_throt"
Line 85: ERROR: Unknown variable "m00nie::youtube::chan_throt"
Line 93: NOTICE: Found constant "rawpage" which is also a variable.
Line 97: WARNING: Unknown command "json::json2dict"
Line 108: ERROR: Unknown variable "m00nie::youtube::key"
m4s wrote:
(I added the ytsearch flag to switch on/off the searching functions only: .chanset #channel +ytsearch)
Hi m4s
Thanks for the good idea. I've added that to the script and posted an update, cheers for the suggestion.
@AlbozZz sorry I'm not familiar with that help site but it looks like it's missed the TCL packages like TLS etc? If you run the script on your bit and it fails please post the output from that and people should be able to help
Throttling is limiting the usage if the number of requests are above a certain amount in a small window time frame, basically prevent others from flooding your bot with commands to fetch results.
Why don't you store variables inside an array, I mean instead of:
caesar wrote:Throttling is limiting the usage if the number of requests are above a certain amount in a small window time frame, basically prevent others from flooding your bot with commands to fetch results.
But where are the number of requests defined?
The variable user_throt 30 means the user has 30 seconds to send yt links to the channel. Right? But how many requests means the flood?
Thanks for the suggestion I'll have a look into it and see if that would help (just a different way than I've done it before so something to learn/try for me)
m4s the default is one request per user ever 30s, one per channel every 10s and the same search term or link spammed in 5 mins and it jumped to 2.2 very quickly when the logic for checking was a bit....crap in the real world but hopefully better now
Cheers
m00nie wrote:
m4s the default is one request per user ever 30s, one per channel every 10s and the same search term or link spammed in 5 mins a....
Cheers
m00nie