#2928 - 08/19/08 02:04 AM
!add !edIT !del for a mIRC bot
|
Over 50 posts
Registered: 03/18/08
Posts: 55
Loc: Califotnia
|
Does anyone know where I can get the !add !edit and !del commands for a mirc bot? I know I saw them somewhere. Example: !add command !edit command! !del command all to the MIRC Bot.
_________________________
<witty comment here>
|
|
Top
|
|
|
|
Sponsored Links
Member
    
Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
|
|
|
Top
|
|
|
|
#3082 - 09/02/08 09:59 AM
Re: !add !edIT !del for a mIRC bot
[Re: iAlex]
|
Over 50 posts
Registered: 03/18/08
Posts: 55
Loc: Califotnia
|
thanks iAlex 
_________________________
<witty comment here>
|
|
Top
|
|
|
|
#3083 - 09/02/08 10:14 AM
Re: !add !edIT !del for a mIRC bot
[Re: jwire4]
|
Over 50 posts
Registered: 07/24/08
Posts: 77
Loc: Winnipeg, Manitoba, Canada
|
I use Woz for that. It's much easier because it's already made and ready to go.
_________________________
Founder of #techman, #advertising, and #startrek SOP in #vistaops, #ryanbecker, and #techhelper AOP in #GeniusBar, #sam-ops, #vista, and #icomputer HOP in #MRA, #samf, and #yertalert VOP in #buracelive, #Chills, #Chris, #computertech, #iPhone, and #Karol
|
|
Top
|
|
|
|
#3086 - 09/02/08 05:14 PM
Re: !add !edIT !del for a mIRC bot
[Re: techman224]
|
newbie
Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
|
I prefer to run my own bot if I do, because you have more control over what happens and when it is up or down.
_________________________
|
|
Top
|
|
|
|
#4348 - 02/25/09 12:08 AM
Re: !add !edIT !del for a mIRC bot
[Re: boredcollegekid]
|
Over 100 posts
Registered: 02/15/09
Posts: 111
Loc: Ohio
|
I put this together from a broken script in pastebin today for freelancer.
;Just Change the ChannelName Below
on *:TEXT:*:#TBCH: {
if ($1 == !add) {
;the syntax for this is /writeini -n <inifile> <section> <item> <value>
;so you would use something like
if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
writeini commandlist.ini triggers $2 $3-
.msg $chan $2 was added to commandlist.ini by $nick as $3-
;not sure what this is for so I commented it out
;set % $+ $2 $3-
}
if ($1 == !del) && ($2) {
remini commandlist.ini triggers $2
.msg $chan $2 was deleted from commandlist.ini by $nick
}
if ($readini(commandlist.ini,triggers,$1)) {
.msg $chan $readini(commandlist.ini,triggers,$1)
}
}
;This should work if it is the first word, however it could really slow you down reading from the file.
;That's why I used hashtables
_________________________
If you already know everything, You can never learn anything :P
|
|
Top
|
|
|
|
#4431 - 03/05/09 03:30 PM
Re: !add !edIT !del for a mIRC bot
[Re: FordLawnmower]
|
n00b
Registered: 04/10/08
Posts: 5
Loc: Raleigh, NC, USA
|
Also can you make it chan specific so say you were to do "!add command" in #slt it wont be able to do !command some other chan?
_________________________
"Please stand clear of the doors por favor mentenga se alejado de las puertas"- Disney Monorails
|
|
Top
|
|
|
|
#4439 - 03/05/09 09:23 PM
Re: !add !edIT !del for a mIRC bot
[Re: SLT_Studios]
|
Over 100 posts
Registered: 02/15/09
Posts: 111
Loc: Ohio
|
Here you go SLT. I changed it to be channel specific. Of course this means that if you want a common trigger in more than one channel, you will have to add it in each one. I also changed the name, to prevent a conflict, added Freelancers !* at the top and added a !list function to list the triggers.
;I still suggest putting channel names here to keep you out of
;trouble. Ex. on *:TEXT:!*:#chan1,#chan2: {
on *:TEXT:!*:#: {
if ($1 == !add) {
if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
writeini TriggerList.ini $chan $+ - $+ Triggers $2 $3-
.msg $chan $2 was added to TriggerList.ini by $nick as $3-
}
if ($1 == !del) && ($2) {
remini TriggerList.ini $chan $+ - $+ Triggers $2
.msg $chan $2 was deleted from TriggerList.ini by $nick
}
if ($1 == !list) {
listtriggers $chan
}
if ($readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1)) {
.msg $chan $readini(Triggerlist,$chan $+ - $+ Triggers,$1)
}
}
alias listtriggers {
if ($isfile(Triggerlist.ini)) {
if (!$1) { .play -nt $+ $chan $+ - $+ Triggers $me Triggerlist.ini 1500 }
if ($1) { .play -t $+ $chan $+ - $+ Triggers $1 Triggerlist.ini 1000 }
}
}
_________________________
If you already know everything, You can never learn anything :P
|
|
Top
|
|
|
|
#4449 - 03/06/09 06:10 PM
Re: !add !edIT !del for a mIRC bot
[Re: FordLawnmower]
|
n00b
Registered: 04/10/08
Posts: 5
Loc: Raleigh, NC, USA
|
Doesn't work it's saying "Invalid Parameters: $readini (line 1371, remote.ini)" whenever I try to run the command. If I could bring iNtellistar into #Script-Help I can show you what I'm talking about.
_________________________
"Please stand clear of the doors por favor mentenga se alejado de las puertas"- Disney Monorails
|
|
Top
|
|
|
|
#4450 - 03/06/09 09:47 PM
Re: !add !edIT !del for a mIRC bot
[Re: SLT_Studios]
|
Over 100 posts
Registered: 02/15/09
Posts: 111
Loc: Ohio
|
Sorry about that SLT Studios. I fixed it below.
;I still suggest putting channel names here to keep you out of
;trouble. Ex. on *:TEXT:!*:#chan1,#chan2: {
on *:TEXT:!*:#: {
if ($1 == !add) {
if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
writeini TriggerList.ini $chan $+ - $+ Triggers $2 $3-
.msg $chan $2 was added to TriggerList.ini by $nick as $3-
}
if ($1 == !del) && ($2) {
remini TriggerList.ini $chan $+ - $+ Triggers $2
.msg $chan $2 was deleted from TriggerList.ini by $nick
}
if ($1 == !list) {
listtriggers $chan
}
if ($readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1)) {
.msg $chan $readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1)
}
}
alias listtriggers {
if ($isfile(Triggerlist.ini)) {
if (!$1) { .play -nt $+ $chan $+ - $+ Triggers $me Triggerlist.ini 1500 }
if ($1) { .play -t $+ $chan $+ - $+ Triggers $1 Triggerlist.ini 1000 }
}
}
_________________________
If you already know everything, You can never learn anything :P
|
|
Top
|
|
|
|
|
|