URL Bot v3
mIRC Code
+ 1 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jun 11, 2009 |
| Last Updated | Jul 22, 2009 |
| Tags | bot link url |
Introduction
Allow users to store a link on the bot
Commands:
!url add <link> - add URL(only stores 1)
!url edit <link> - replace URL with a new one
!url del - delete your URL
!url view <nick> - view another nick's URL
The HasURL level is mostly for easy tracking of who has added a URL
I could use a script that lists the nicks that have URLs, if anyone would like to help out with this, it would be appreciated ^^
Updates: URLs are now stored in a hash table
non-links are filtered by bot
jonesy44's regex used
mIRC Snippet:
URL Bot v3
Posted on Jun 11, 2009 8:28 pm
Posted on Jun 11, 2009 8:28 pm
What if the add is not even a link or url? You should use a regex to match only URLs.
mIRC Snippet:
URL Bot v3
Posted on Jun 11, 2009 10:08 pm
Posted on Jun 11, 2009 10:08 pm
Also this could use a lot of vars, maybe go with a ini file.
mIRC Snippet:
URL Bot v3
Posted on Jun 11, 2009 10:15 pm
Posted on Jun 11, 2009 10:15 pm
I'd opt for hash tables if I had a chance for similar script.
mIRC Snippet:
URL Bot v3
Posted on Jun 12, 2009 10:00 am
Posted on Jun 12, 2009 10:00 am
oops, I guess I didnt think about the number of vars and invalid inputs, Im not really good with ini files but Ill read up on it and get to work ASAP :D
mIRC Snippet:
URL Bot v3
Posted on Jun 14, 2009 5:54 pm
Posted on Jun 14, 2009 5:54 pm
sk86 dis is like my script. ppl said da same thing use ini use hash. i personally like vars, tho hash is probaly ur best bet here. tho u went w. ini oh well.
mIRC Snippet:
URL Bot v3
Posted on Jun 16, 2009 7:54 am
Posted on Jun 16, 2009 7:54 am
I'd use regex to match URL's, something like,
$regml(1) - URL string
| Code: |
| $regex(str,/((http:\/\/?)(www\.?).*.\.*)/Si) |
$regml(1) - URL string
mIRC Snippet:
URL Bot v3
Posted on Jul 22, 2009 11:45 am
Posted on Jul 22, 2009 11:45 am
Replace "str" with $3 :)
mIRC Snippet:
URL Bot v3
Posted on Jul 22, 2009 7:12 pm
Posted on Jul 22, 2009 7:12 pm
uh...yea...I knew that >.>
mIRC Snippet:
URL Bot v3
Posted on Jul 25, 2009 6:50 pm
Posted on Jul 25, 2009 6:50 pm
Can you add success string entries for the url?
mIRC Snippet:
URL Bot v3
Posted on Jul 26, 2009 9:22 am
Posted on Jul 26, 2009 9:22 am
well, that depends...what?
mIRC Snippet:
URL Bot v3
Posted on Aug 5, 2009 8:11 am
Posted on Aug 5, 2009 8:11 am
you obviously didnt see my store script >.<









