Max's Botserv Dialog
mIRC Code
+ 1 likes
Please Register to submit score.
| Average Score | 7.0 (of 3 scores) |
| Date Added | May 08, 2009 |
| Last Updated | May 13, 2009 |
| Tags | bot bots botserv commands dialog |
Introduction

I originally made this specifically for the WyldRyde network, it works with their Botserv. It would probably work on other networks with Botserv as well. It's part of the script I'm building optimized for the WyldRyde network. =]
It's fairly simple to use, just add your channel(s) and choose a channel to operate Botserv on. Whichever channel you have selected, determines what channel the rest of the dialog operates on. You can list all the bots available, type in the name of the bot you want, and click assign, and it'll assign the bot to your channel. You can make the bot say something by using the bot talk section, and make the bot do something by using the bot act section. I also put in a confirm delete dialog for deleting channels.
I'll be adding stuff to it, I just finished this first version after working with it for a while and making changes to it.
Thanks to Kirby for helping with the drop down menu. =]
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 12:02 am
Posted on May 9, 2009 12:02 am
I like this simple but useful, the coding is great as well.
I think you could have made the dialog look a bit better some of the buttons are a little to small for the words inside them.
I think you could have made the dialog look a bit better some of the buttons are a little to small for the words inside them.
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 7:58 pm
Posted on May 9, 2009 7:58 pm
Looks nice, you're getting better at dialogs.
One thing I would change though:
Instead of a separate dialog, you can use an $input event to handle that.
In this script, however, I would use something like:
/noop means no operation, if you didn't know.
To further modify this, you can do something like:
/help $input for more information on how to use them.
One thing I would change though:
| Code: |
| dialog Confirm { title "Confirm Delete" size -1 -1 84 36 option dbu box "Delete Channel?", 1, 3 1 78 33 button "Yes", 2, 10 16 29 9, ok button "No", 3, 44 16 29 9, cancel } |
Instead of a separate dialog, you can use an $input event to handle that.
In this script, however, I would use something like:
| Code: |
| noop $input(Delete Channel?,ywk5,Confirm Delete) |
/noop means no operation, if you didn't know.
To further modify this, you can do something like:
| Code: |
| $iif($input(Delete Channel?,ywk5,Confirm Delete),remini BChannels.ini Channels $did(BSD,6).sel) |
/help $input for more information on how to use them.
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 8:06 pm
Posted on May 9, 2009 8:06 pm
instead of useing BChannels.ini for the channels just use a var ex: %BChannels #chan1,#chan2,#chan3 also after that get rid of that ChannelBox alias then use this on the init event
/help /didtok
| Code: |
| didtok $dname 6 44 %BChannels |
/help /didtok
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 8:15 pm
Posted on May 9, 2009 8:15 pm
Along with what Slickone has said about using tokens, instead of .ini files, you can also change:
to
I see that this is the complete snippet that you had a question about how to use .ini files, in the mIRC Forum. You could've used variables instead. :-P
| Code: |
| if ($did == 7) { writeini BChannels.ini Channels $calc($ini(BChannels.ini,Channels,0) + 1) $?="Enter Channel To Add" } |
to
| Code: |
| if ($did == 7) { set %BChannels $addtok(%BChannels,$?="Enter a channel to add.",44) } |
I see that this is the complete snippet that you had a question about how to use .ini files, in the mIRC Forum. You could've used variables instead. :-P
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 8:36 pm
Posted on May 9, 2009 8:36 pm
I remembered I had used ini files before. But didn't think about using variables for it. So, that is a good idea. =P
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 9:00 pm
Posted on May 9, 2009 9:00 pm
looks nice and i might point out a first for me to se a dialouge made to access it..
now.. in saying that, botserv has much much more functions though than you have listed.
this is a complete list of botserv functions. you may for an upgrade to this code want to include some of these into the dialouge :)
gets a 7 from me so far as it stands due to its uniqueness
now.. in saying that, botserv has much much more functions though than you have listed.
this is a complete list of botserv functions. you may for an upgrade to this code want to include some of these into the dialouge :)
| Quote: |
-BotServ- BotServ allows you to have a bot on your own channel. -BotServ- It has been created for users that can't host or -BotServ- configure a bot, or for use on networks that don't -BotServ- allow users' bot. Available commands are listed -BotServ- below; to use them, type /msg BotServ command. For -BotServ- more information on a specific command, type /msg -BotServ- BotServ HELP command. -BotServ- BOTLIST Lists available bots -BotServ- ASSIGN Assigns a bot to a channel -BotServ- SET Configures bot options -BotServ- KICK Configures kickers -BotServ- BADWORDS Maintains bad words list -BotServ- ACT Makes the bot do the equivalent of a "/me" command -BotServ- INFO Allows you to see BotServ information about a channel or a bot -BotServ- SAY Makes the bot say the given text on the given channel -BotServ- UNASSIGN Unassigns a bot from a channel -BotServ- Bot will join a channel whenever there is at least -BotServ- 1user(s) on it. |
gets a 7 from me so far as it stands due to its uniqueness
mIRC Snippet:
Max's Botserv Dialog
Posted on May 9, 2009 9:20 pm
Posted on May 9, 2009 9:20 pm
Yeah, I'll add a lot more to the dialog. I added basic commands for now.
mIRC Snippet:
Max's Botserv Dialog
Posted on May 11, 2009 10:56 pm
Posted on May 11, 2009 10:56 pm
What would I use to delete tokens? I tried $deltok, but I must be missing something.
mIRC Snippet:
Max's Botserv Dialog
Posted on May 13, 2009 8:26 am
Posted on May 13, 2009 8:26 am
i had a look at mirc help files for deltok and this is all i could see
| Quote: |
$deltok(text,N-N2,C) Deletes the Nth token from text. $deltok(a.b.c.d,3,46) returns a.b.d $deltok(a.b.c.d,2-3,46) returns a.d You can specify a negative value for N. |
mIRC Snippet:
Max's Botserv Dialog
Posted on May 13, 2009 12:45 pm
Posted on May 13, 2009 12:45 pm
I tried
But that didn't work. So, I'm wondering if I missed something. Or didn't do it right.
| Code: |
| $deltok(%BChannels,$did(BSD,6).text,44) |
But that didn't work. So, I'm wondering if I missed something. Or didn't do it right.
mIRC Snippet:
Max's Botserv Dialog
Posted on May 13, 2009 1:12 pm
Posted on May 13, 2009 1:12 pm
try this
or this
| Code: |
| $deltok(%BChannels,$did(6).sel,44) |
or this
| Code: |
| $remtok(%BChannels,$did(6).seltext,1,44) |
mIRC Snippet:
Max's Botserv Dialog
Posted on May 13, 2009 1:22 pm
Posted on May 13, 2009 1:22 pm
Thank you! That worked.
Now if I wanted to put
I put that in there and it said invalid format.
Now if I wanted to put
| Code: |
| $iif($input(Delete Channel?,ywk5,Confirm Delete) |
I put that in there and it said invalid format.









