streamwire 0 Posted September 7, 2012 Report Share Posted September 7, 2012 hey, i got stuck... again. i am trying to script some sort of blacklist. the bot should check a text file for the actual URL. if the URL is on the list, the bot should override this site and proceed with the next. for now, i put $url into %checkurl list and my blacklist.txt into %channelDB list. whatever command i use, the bot did not recognise the values at all.could someone give me a hint on this please? Quote Link to post Share on other sites
blumi40 222 Posted September 7, 2012 Report Share Posted September 7, 2012 a fast way to match without looping a complete list is the $contains function load the textfile as a #var in ubot the u can match like if($contains(#var, "http://myblacklisturl.com")) { then {} else {} }the containsfunction is mosttime faster the a loop to a list hope that helps Quote Link to post Share on other sites
streamwire 0 Posted September 8, 2012 Author Report Share Posted September 8, 2012 thank you. this works for me :-) i tried to use two lists and compare them to each other. using the #var works perfect Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.