mBOT v2.0 is coming...
Finally I've decided (after almost 5 years) to release the next version of mBOT.
I'm gonna be needing some beta testers to debug and test it.
If you're interested to becoming a beta tester, please reply to this post (or e-mail me) and I'll be sending you the link in next several days...
I'll be posting screenshots of new mBOT here soon.
Thanks.
@mrgreaper Because it's disabled. It wasn't ready for that version.
@Rendy Unfortunately I don't.
pff, I just lol'd when i saw that this guy has posted this snippet here. He came to me last night and asked me to write such a snippet for him. Then he f*cked it and posted it here.
This is the original snippet: http://pastebin.com/GyKcR9Tq
I used "$nick ison $chan" because i had /timer in there, (To not flood the guy off the server) so it might that the person weren't in the channel anymore and it would give error....
I'm not saying that i've written this flawlessly... It might have errors, or not working properly. Honestly, i didn't even test it, i just wrote it quickly to give the guy an idea.
Also, about checking "if ($2 isnum 1-) { ...}", it used to be a /command, that's why i just wanted to make sure that the number is positive (Just like jaytea said.). And after that the guy asked me to add a popup for it either.
Another note: I used "$len($$?="Enter length")" because he said that he want to write ???? (one question mark per character) which is really dumb.. i told him to just write a number but he wanted it like this.. lol
@Sharky_Dude: Yeah, nothing can be perfect. Always there are something that are missing in an application/addon. And of course you can adjust the bot and adding more features in it and use it..
@ManicWaldo: I've used channel's idle for devoicer because the matter is channel. If someone talks in private message he/she still has no activity on channel and our goal is channel's activity. I'll see what i can do about your request and hope to implement it if possible. Thank you for your opinion.
Thank you both for using mBOT.
Honestly, i didn't try your snippet but when i was reading your code, i thought these tips might be useful for you:
1) This alias will cause an error if the dialog is already open:
alias autotalker { dialog -dm autotalker autotalker }
It's better to write like this:
alias autotalker {
dialog $iif($dialog(autotalker),-v,-dm autotalker) autotalker
}
2) When you want to add some items in a ComboBox, you can use /didtok instead of adding your items one by one
/did -ca add 2 None
/did -a add 2 White
/did -a add 2 Green
/did -a add 2 Purple
/did -a add 2 Red
/did -a add 2 Cyan
/did -a add 2 Glow1
/did -a add 2 Glow2
/did -a add 2 Glow3
/did -a add 2 Flash1
/did -a add 2 Flash2
/did -a add 2 Flash3
/did -ca add 3 None
/did -a add 3 Wave
/did -a add 3 Wave2
/did -a add 3 Slide
/did -a add 3 Shake
/did -a add 3 Scroll
Could be:
didtok $dname 2 32 None White Green Purple Red Cyan Glow1 Glow2 Glow3 Flash1 Flash2 Flash3
did -c $dname 2 1
didtok $dname 3 32 None Wave Wave2 Slide Shake Scroll
did -c $dname 3 1
3) And all off those slashes are useless in remote.
4) When you're writing an addon or a snippet, you MUST use $scriptdir to save your data, but you're using mIRC's root directory.
while ($did(1,%x)) {
write AutoTalker\AutoText.txt $v1
inc %x
}
This can be done by adding a $scriptdir in your code like this:
while ($did(1,%x)) {
write $scriptdirAutoText.txt $v1
inc %x
}
Hope i could help you a bit to improve your snippet.
Good Luck.
@ManicWaldo: Yeah, i've told him that in a private message because when he commented here, Hawkee had some issues and i couldn't post my comment here so i pmsg'd him. Btw thanks for your help.
@jarrodkharis: Thanks buddy. It hasn't everything, but has some useful thingies.
I hope i will surprise many of mBOT users with the next version by giving them the advantage of using a better and more stable mIRC bot. ;) Soon I'll set up a page on my home page for news about updating mBOT and users can keep tracking of what i'm doing.
I think in the ON CONNECT event, you could do like this:
var %x = 1,%chans
while (%x <= $lines(AutojoinChannels.txt)) {
%chans = $addtok(%chans,$read(AutojoinChannels.txt,%x),44)
inc %x
}
if (%chans) { join %chans }
So, in this way you're just sending ONE command to join all the channels instead of sending one command per each channel.
Another suggestion: some networks/services are don't support /msg NickServ. Like DALnet; you must type /NickServ or /msg NickServ@services.dal.net... So, it's better to use /NickServ itself.