Top

iBot v2.1


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Jun 20, 2006
Last Updated  Jul 01, 2006
Tags  bot  bots  botscript 

Introduction

<b>Directions:</b>
Paste the code into your remotes section.
To add yourself as Admin you will need to open the Dialog
Enter:
/Dialog -m iBot iBot


After you have added youself as Admin, get the bot to the channel you want, and all of that. When you join the channel, you should be given Moderator status in the room, assuming the bot had it first.
If not then something went wrong.

<b>Note:</b>
This bot would need Admin/Oper Status to fully work.

<b>Version 1.2</b>
1. Added Options for Mods to perform certain commands.
2. Added Options for Voiced Users to perform certain commands.

<b>Version 2.1</b>
1. Added a Quote/Joke/Fact System.
2. Added a Greet System.
3. Added a Dictionary System.
4. Added Options for Normal Users to perform certain commands.
6. Added $Null's, Notices, and timers.
7. Added a Dialog for configuration when you first get the script.
<b><i>Suggestions and comments would greatly be appreciated.</i></b>


Grab the Code

dialog iBot {
  Title "iBot v2.1  Created and Scripted by Pibb "
  Size -1 -1 155 64
  Option dbu 
  Text "Options are for setting Admin/Mods/Voiced users for iBot", 1, 5 5 150 25 
  button "Admin", 2, 5 20 40 10, ok flat 
  button "Mod", 3, 55 20 40 10, ok flat 
  button "Voiced", 4, 105 20 40 10, ok flat 
  Text "To Check for Updates, or leave comments and suggestions.", 5, 5 40 150 7
  Text "Visit", 6, 5 49 10 10
  Link "http://www.hawkee.com/snippet.php?snippet_id=1949", 7, 16 49 150 10
}
On *:Dialog:iBot:Sclick:2:{
  Var %iBot.SetNick.Admin $?="Enter Admin Nickname"
  Writeini iBot.ini %iBot.SetNick.Admin Admin Yes
  Echo -a $Chr(91) $+ Added Admin - %iBot.SetNick.Admin $+ $Chr(93)
}
On *:Dialog:iBot:Sclick:3:{
  Var %iBot.SetNick.Mod $?="Enter Mod Nickname"
  Writeini iBot.ini %iBot.SetNick.Mod Level Mod
  Echo -a $Chr(91) $+ Added Mod - %iBot.SetNick.Mod $+ $Chr(93)
}
On *:Dialog:iBot:Sclick:4:{
  Var %iBot.SetNick.Voiced $?="Enter Voiced User Nickname"
  Writeini iBot.ini %iBot.SetNick.Voiced Level Voice
  Echo -a $Chr(91) $+ Added Voiced User - %iBot.SetNick.Voiced $+ $Chr(93)
}
On *:Dialog:iBot:Sclick:7:{
  Run http://www.hawkee.com/snippet.php?snippet_id=1949
}
On *:Text:*:#:{
  If ($Readini(iBot.ini, $Nick, Admin) == Yes) {
    If ($1- == .Commands) {
      .Notice $Nick $Chr(91)  Command List for Admins $Chr(93)
      /Timer 1 3 .Notice $Nick .Auto <Voice/Mod> <Add/Del> <NickName> 
      /Timer 1 6 .Notice $Nick <+/-> <Op/Voice/Quiet/Ban> <NickName> 
      /Timer 1 9 .Notice $Nick .<Kick/Invite> <NickName> 
      /Timer 1 12 .Notice $Nick .<Join/Part/Reg/UnReg/Kill> <ChannelName or NickName>  
      /Timer 1 15 .Notice $Nick <+/-> <Kline/AutoKill/Admin/Oper> <Ip or Nickname> 
      /Timer 1 18 .Notice $Nick <+/-> <Aop/Sop/Vop> <NickName> 
      /Timer 1 21 .Notice $Nick .Add <Joke/Fact/Quote> <Your Joke/Quote/Fact Here>
      /Timer 1 24 .Notice $Nick .<Greet/Dictionary> <Add/Edit> <Your Greet/Dictionary Entry Here>
      /Timer 1 27 .Notice $Nick .<Greet/Dictionary> <Del> <Name of Dictionary Entry/Leave blank for Greet>
    }
    Elseif ($1 == .Auto) {
      If ($2 == Voice) {
        If ($3 == Add) { writeini iBot.ini $4- Level Voice }
        Elseif ($3 == Del) { remini iBot.ini $4- Level }
      }
      Elseif ($2 == Mod) {
        If ($3 == Add) { Writeini iBot.ini $4- Level Mod }
        Elseif ($3 == Del) { Remini iBot.ini $4- Level }
      }
    }
    Elseif ($1 == .Kick) { Kick $Chan $2- }
    Elseif ($1 == .Invite) { Invite $2- $Chan }
    Elseif ($1 == .Join) { Join $2- }
    Elseif ($1 == .Part) { Part $2- }
    Elseif ($1 == .Reg) { Services Register $2- }
    Elseif ($1 == .Unreg) { Services Drop $2- }
    Elseif ($1 == .Kill) { Kill $2- }
    Elseif ($1 == +) {
      If ($2 == Op) { Mode $Chan +o $3- }
      Elseif ($2 == Voice) { Mode $Chan +v $3- }
      Elseif ($2 == Quiet) { Mode $Chan +q $3- }
      Elseif ($2 == Ban) { Mode $Chan +b $3- }
      Elseif ($2 == Kline) { Kline $3- }
      Elseif ($2 == AKill) { Akill $3- }
      Elseif ($2 == Admin) { Setoper +Admin $3- }
      Elseif ($2 == Oper) { Setoper +Oper $3- }
      Elseif ($2 == Aop) { Services AOP $Chan ADD $3- }
      Elseif ($2 == Sop) { Services SOP $Chan ADD $3- }
      Elseif ($2 == Vop) { Services VOP $Chan ADD $3- }
    }
    Elseif ($1 == -) {
      If ($2 == Op) { Mode $Chan -o $3- }
      Elseif ($2 == Voice) { Mode $Chan -v $3- }
      Elseif ($2 == Quiet) { Mode $Chan -q $3- }
      Elseif ($2 == Ban) { Mode $Chan -b $3- }
      Elseif ($2 == Kline) { Unkline $3- }
      Elseif ($2 == AKill) { Rakill $3- }
      Elseif ($2 == Admin) { Setoper -Admin $3- }
      Elseif ($2 == Oper) { Setoper -Oper $3- }
      Elseif ($2 == Aop) { Services AOP $Chan DEL $3- }
      Elseif ($2 == Sop) { Services SOP $Chan DEL $3- }
      Elseif ($2 == Vop) { Services VOP $Chan DEL $3- }
    }
    Elseif ($1 == .Add) { 
      If ($2 == Joke) {
        Write Jokes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Joke $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Fact) {
        Write Facts.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Fact $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Quote) {
        Write Quotes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Quote $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == $Null) {
        .Notice $Nick You didn't select a catagory 
        .Notice $Nick Correct usage:  .Add <Joke/Fact/Quote>
      }
    }
    Elseif ($1 == .Quote) { .Msg $Chan $Read(Quotes.txt) }
    Elseif ($1 == .Joke) { .Msg $Chan $Read(Jokes.txt) }
    Elseif ($1 == .Fact) { .Msg $Chan $Read(Facts.txt) }
    Elseif ($1 == .Greet) {
      If ($2 == Add) { 
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Added Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == Del) { 
        Remini iBot.ini $Nick Greet 
        .Notice $Nick $Chr(91) $+ Deleted Greet $+ $Chr(93) For $Nick $+ .
      }
      Elseif ($2 == Edit) { 
        Remini iBot.ini $Nick Greet
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Edited Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == $Null) {
        .Msg $Chan $Chr(91) $+ $Nick $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      }
    }
    Elseif ($1 == .Dictionary) {
      If ($2 == Add) {
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Added Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 == Del) {
        Remini iBot.ini $Nick $3
        .Notice $Nick $Chr(91) $+ Deleted Dictionary Entry $+ $Chr(93) $3 $+ .
      }
      Elseif ($2 == Edit) {
        Remini iBot.ini $Nick $3
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Edited Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 != $Null) {
        If ($Readini(iBot.ini, $Nick, $2) != $Null) {
          .Msg $Chan $Chr(91) $+ $2 $+ $Chr(93) $Readini(iBot.ini, $Nick, $2) $+ .
          .Notice $Nick $Chr(91) $+ Dictionary Entry $2 Is not in my file $+ $Chr(93)  $+ .
        }
      }
    }
  }
  Elseif ($Readini(iBot.ini, $Nick, Level) == Mod) {
    If ($1- == .Commands) {
      .Notice $Nick $Chr(91)  Command List for Mods $Chr(93)
      /Timer 1 3 .Notice $Nick <+/-> <Op/Voice/Quiet/Ban> <NickName> 
      /Timer 1 6 .Notice $Nick .<Kick/Invite> <NickName or Ip>
      /Timer 1 9 .Notice $Nick .Add <Joke/Fact/Quote> <Your Joke/Quote/Fact Here>
      /Timer 1 12 .Notice $Nick .<Greet/Dictionary> <Add/Edit> <Your Greet/Dictionary Entry Here>
      /Timer 1 15 .Notice $Nick .<Greet/Dictionary> <Del> <Name of Dictionary Entry/Leave blank for Greet>
    }
    Elseif ($1 == .Kick) { Kick $Chan $2- }
    Elseif ($1 == .Invite) { Invite $2- $Chan }
    Elseif ($1 == +) {
      If ($2 == Op) { Mode $Chan +o $3- }
      Elseif ($2 == Voice) { Mode $Chan +v $3- }
      Elseif ($2 == Quiet) { Mode $Chan +q $3- }
      Elseif ($2 == Ban) { Mode $Chan +b $3- }
    }
    Elseif ($1 == -) {
      If ($2 == Op) { Mode $Chan -o $3- }
      Elseif ($2 == Voice) { Mode $Chan -v $3- }
      Elseif ($2 == Quiet) { Mode $Chan -q $3- }
      Elseif ($2 == Ban) { Mode $Chan -b $3- }
    }
    Elseif ($1 == .Add) { 
      If ($2 == Joke) {
        Write Jokes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Joke $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Fact) {
        Write Facts.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Fact $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Quote) {
        Write Quotes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Quote $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == $Null) {
        .Notice $Nick You didn't select a catagory 
        .Notice $Nick Correct usage:  .Add <Joke/Fact/Quote>
      }
    }
    Elseif ($1 == .Quote) { .Msg $Chan $Read(Quotes.txt) }
    Elseif ($1 == .Joke) { .Msg $Chan $Read(Jokes.txt) }
    Elseif ($1 == .Fact) { .Msg $Chan $Read(Facts.txt) }
    Elseif ($1 == .Greet) {
      If ($2 == Add) { 
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Added Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == Del) { 
        Remini iBot.ini $Nick Greet 
        .Notice $Nick $Chr(91) $+ Deleted Greet $+ $Chr(93) For $Nick $+ .
      }
      Elseif ($2 == Edit) { 
        Remini iBot.ini $Nick Greet
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Edited Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == $Null) {
        .Msg $Chan $Chr(91) $+ $Nick $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      }
    }
    Elseif ($1 == .Dictionary) {
      If ($2 == Add) {
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Added Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 == Del) {
        Remini iBot.ini $Nick $3
        .Notice $Nick $Chr(91) $+ Deleted Dictionary Entry $+ $Chr(93) $3 $+ .
      }
      Elseif ($2 == Edit) {
        Remini iBot.ini $Nick $3
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Edited Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 != $Null) {
        If ($Readini(iBot.ini, $Nick, $2) != $Null) {
          .Msg $Chan $Chr(91) $+ $2 $+ $Chr(93) $Readini(iBot.ini, $Nick, $2) $+ .
          .Notice $Nick $Chr(91) $+ Dictionary Entry $2 Is not in my file $+ $Chr(93)  $+ .
        }
      }
    }
  }
  Elseif ($Readini(iBot.ini, $Nick, Level) == Voice) {
    If ($1- == .Commands) {
      .Notice $Nick $Chr(91)  Command List for Voiced $Chr(93)
      /Timer 1 3 .Notice $Nick <+/-> <Quiet> <NickName> 
      /Timer 1 6 .Notice $Nick .Add <Joke/Fact/Quote> <Your Joke/Quote/Fact Here>
      /Timer 1 9 .Notice $Nick .<Greet/Dictionary> <Add/Edit> <Your Greet/Dictionary Entry Here>
      /Timer 1 12 .Notice $Nick .<Greet/Dictionary> <Del> <Name of Dictionary Entry/Leave blank for Greet>
    }
    Elseif ($1 == +) {
      If ($2 == Quiet) { Mode $Chan +q $3- }
    }
    Elseif ($1 == -) {
      If ($2 == Quiet) { Mode $Chan -q $3- }
    }
    Elseif ($1 == .Add) { 
      If ($2 == Joke) {
        Write Jokes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Joke $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Fact) {
        Write Facts.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Fact $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == Quote) {
        Write Quotes.txt $3- By: $Nick
        .Notice $Nick $Chr(91) $+ Added Quote $+ $Chr(93) $3- By: $Nick $+ .
      }
      Elseif ($2 == $Null) {
        .Notice $Nick You didn't select a catagory 
        .Notice $Nick Correct usage:  .Add <Joke/Fact/Quote>
      }
    }
    Elseif ($1 == .Quote) { .Msg $Chan $Read(Quotes.txt) }
    Elseif ($1 == .Joke) { .Msg $Chan $Read(Jokes.txt) }
    Elseif ($1 == .Fact) { .Msg $Chan $Read(Facts.txt) }
    Elseif ($1 == .Greet) {
      If ($2 == Add) { 
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Added Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == Del) { 
        Remini iBot.ini $Nick Greet 
        .Notice $Nick $Chr(91) $+ Deleted Greet $+ $Chr(93) For $Nick $+ .
      }
      Elseif ($2 == Edit) { 
        Remini iBot.ini $Nick Greet
        Writeini iBot.ini $Nick Greet $3-
        .Notice $Nick $Chr(91) $+ Edited Greet $+ $Chr(93) $3- $+ .
      }
      Elseif ($2 == $Null) {
        .Msg $Chan $Chr(91) $+ $Nick $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      }
    }
    Elseif ($1 == .Dictionary) {
      If ($2 == Add) {
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Added Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 == Del) {
        Remini iBot.ini $Nick $3
        .Notice $Nick $Chr(91) $+ Deleted Dictionary Entry $+ $Chr(93) $3 $+ .
      }
      Elseif ($2 == Edit) {
        Remini iBot.ini $Nick $3
        Writeini iBot.ini $Nick $3 $4-
        .Notice $Nick $Chr(91) $+ Edited Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
      }
      Elseif ($2 != $Null) {
        If ($Readini(iBot.ini, $Nick, $2) != $Null) {
          .Msg $Chan $Chr(91) $+ $2 $+ $Chr(93) $Readini(iBot.ini, $Nick, $2) $+ .
          .Notice $Nick $Chr(91) $+ Dictionary Entry $2 Is not in my file $+ $Chr(93)  $+ .
        }
      }
    }
  }
  Elseif ($Readini(iBot.ini, $Nick, Level) == $Null) {
    If ($Readini(iBot.ini, $Nick, Admin) == $Null) {
      If ($1- == .Commands) {
        .Notice $Nick $Chr(91)  Command List for Voiced $Chr(93)
        /Timer 1 3 .Notice $Nick .Add <Joke/Fact/Quote> <Your Joke/Quote/Fact Here>
        /Timer 1 6 .Notice $Nick .<Greet/Dictionary> <Add/Edit> <Your Greet/Dictionary Entry Here>
        /Timer 1 9 .Notice $Nick .<Greet/Dictionary> <Del> <Name of Dictionary Entry/Leave blank for Greet>
      }
      Elseif ($1 == +) {
        If ($2 == Quiet) { Mode $Chan +q $3- }
      }
      Elseif ($1 == -) {
        If ($2 == Quiet) { Mode $Chan -q $3- }
      }
      Elseif ($1 == .Add) { 
        If ($2 == Joke) {
          Write Jokes.txt $3- By: $Nick
          .Notice $Nick $Chr(91) $+ Added Joke $+ $Chr(93) $3- By: $Nick $+ .
        }
        Elseif ($2 == Fact) {
          Write Facts.txt $3- By: $Nick
          .Notice $Nick $Chr(91) $+ Added Fact $+ $Chr(93) $3- By: $Nick $+ .
        }
        Elseif ($2 == Quote) {
          Write Quotes.txt $3- By: $Nick
          .Notice $Nick $Chr(91) $+ Added Quote $+ $Chr(93) $3- By: $Nick $+ .
        }
        Elseif ($2 == $Null) {
          .Notice $Nick You didn't select a catagory 
          .Notice $Nick Correct usage:  .Add <Joke/Fact/Quote>
        }
      }
      Elseif ($1 == .Quote) { .Msg $Chan $Read(Quotes.txt) }
      Elseif ($1 == .Joke) { .Msg $Chan $Read(Jokes.txt) }
      Elseif ($1 == .Fact) { .Msg $Chan $Read(Facts.txt) }
      Elseif ($1 == .Greet) {
        If ($2 == Add) { 
          Writeini iBot.ini $Nick Greet $3-
          .Notice $Nick $Chr(91) $+ Added Greet $+ $Chr(93) $3- $+ .
        }
        Elseif ($2 == Del) { 
          Remini iBot.ini $Nick Greet 
          .Notice $Nick $Chr(91) $+ Deleted Greet $+ $Chr(93) For $Nick $+ .
        }
        Elseif ($2 == Edit) { 
          Remini iBot.ini $Nick Greet
          Writeini iBot.ini $Nick Greet $3-
          .Notice $Nick $Chr(91) $+ Edited Greet $+ $Chr(93) $3- $+ .
        }
        Elseif ($2 == $Null) {
          .Msg $Chan $Chr(91) $+ $Nick $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
        }
      }
      Elseif ($1 == .Dictionary) {
        If ($2 == Add) {
          Writeini iBot.ini $Nick $3 $4-
          .Notice $Nick $Chr(91) $+ Added Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
        }
        Elseif ($2 == Del) {
          Remini iBot.ini $Nick $3
          .Notice $Nick $Chr(91) $+ Deleted Dictionary Entry $+ $Chr(93) $3 $+ .
        }
        Elseif ($2 == Edit) {
          Remini iBot.ini $Nick $3
          Writeini iBot.ini $Nick $3 $4-
          .Notice $Nick $Chr(91) $+ Edited Dictionary Entry $+ $Chr(93) $3 $+ : $4- $+ .
        }
        Elseif ($2 != $Null) {
          If ($Readini(iBot.ini, $Nick, $2) != $Null) {
            .Msg $Chan $Chr(91) $+ $2 $+ $Chr(93) $Readini(iBot.ini, $Nick, $2) $+ .
          }
        }
      }
    }  
  }
}
On *:Join:#: { 
  If ($Readini(iBot.ini, $Nick, Admin) == Yes) {  
    If ($Readini(iBot.ini, $Nick, Greet) != $Null) {
      .Msg $Chan $Chr(91) $+ Auto Greet $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      Mode $Chan +o $nick 
    }
    Else { Mode $Chan +o $nick }
  }
  Elseif ($Readini(iBot.ini, $Nick, Level) == Mod) { 
    If ($Readini(iBot.ini, $Nick, Greet) != $Null) {
      .Msg $Chan $Chr(91) $+ Auto Greet $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      Mode $Chan +o $nick 
    }
    Else { Mode $Chan +o $nick }
  }
  Elseif ($Readini(iBot.ini, $Nick, Level) == Voice) { 
    If ($Readini(iBot.ini, $Nick, Greet) != $Null) {
      .Msg $Chan $Chr(91) $+ Auto Greet $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet)
      Mode $Chan +v $nick 
    }
    Else { Mode $Chan +v $nick }
  }
  Else { 
    If ($Readini(iBot.ini, $Nick, Greet) != $Null) { .Msg $Chan $Chr(91) $+ Auto Greet $+ $Chr(93) $Readini(iBot.ini, $Nick, Greet) }
  }
}

Comments

  (23)  RSS
Smokey
Comments: 9
 
mIRC Snippet:  iBot v2.1
Posted on Jun 20, 2006 8:25 pm
not bad, ini's are slow but its a step! congrats! :)
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 20, 2006 9:47 pm
I've never found .ini's to be slower. But then again, i'm on smaller servers. With only 4-5 people having to use the Bots commands.
sean
Comments: 109
 
mIRC Snippet:  iBot v2.1
Posted on Jun 20, 2006 9:49 pm
use hash, it will void the .ini and make things less complicated for less experianced users
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 20, 2006 10:05 pm
I've never learned how to use/code hash tables. I might give that a try someday, but for now this will do.
CaRe_Taker
Comments: 134
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 2:04 am
Ive only just Started learnin how to code hash tables
its not overly hard
but im still on basic stuff

ini files are good if you dont no how to code hash tables
Good job :)

one suggestion
maybe make an on load thing So that you dont have to Create iBot.ini
?
So when you load the script into mirc it Writes the ini or some thin like that :)
Raichu
Comments: 49
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 4:46 am
INI aint that hard if u know how to use it.... and for me personnaly hash are pretty much harder for me
noMen
Comments: 56
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 11:31 am
Hash tables have one big disadvantage to me: you have to hsave them. That means, if mIRC crashes you will loose all your data. A small disadvantage is that you cannot change the contents easily unless you have some kind of editor. About speed and INI: if your PC dates from 1990 or so, yes you should use hash tables. But modern PC's process INI files fast enough. By the way: INI files are processed in memory! Re: /help /flushini
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 11:55 am
Well, .ini's are working well for the structure of my code so far. When I get some time, I might learn Hash tables.
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 12:13 pm
Hmm, I checked the Tutorial Forum, but I didn't see a Hash Table Tutorial. Anyone know of a link to one, or can provide me with basic help?
Bigmomma
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 1:36 pm
/help hash
Smokey
Comments: 9
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 7:25 pm
well my pc is from 1924 so i use hash tables.
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 9:52 pm
I read the help file on Hash Tables, but I would probably understand better, if I had a code that used Hash Tables. However I looked in the snippet section and only found Hash Table viewers. And I don't think those will make the cut.
If anyone has any kind of code that uses Hash Tables, other then viewers, would you please pm me it.
Happy
Comments: 3
 
mIRC Snippet:  iBot v2.1
Posted on Jun 21, 2006 10:02 pm
Pibb, there are hash table tutorials on mirc.net and mircscripts.org.
noMen
Comments: 56
 
mIRC Snippet:  iBot v2.1
Posted on Jun 22, 2006 12:57 am
Acid-Religion
Comments: 62
 
mIRC Snippet:  iBot v2.1
Posted on Jun 22, 2006 8:36 am
I see your help system uses 7 notices in a row, which could cause an Excess Flood disconnect on some networks.. A way of improving this could be to put it in one notice with [brackets] to seperate commands, or using timers...
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 25, 2006 8:44 pm
I have several more ideas to add to the bot. But not too many, suggestions on what you would like to see on the bot would be appriciated.
shugo103
Comments: 38
 
mIRC Snippet:  iBot v2.1
Posted on Jun 25, 2006 10:24 pm
Why not make it work for other servers?
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 25, 2006 10:27 pm
When you say "other servers", do you mean Multiple Servers at once, or ones that use Nick/Memo/Chan Serv's.
shugo103
Comments: 38
 
mIRC Snippet:  iBot v2.1
Posted on Jun 25, 2006 10:43 pm
nickservs And that stuff. I know you only go to a couple servers But if you post it, it should work for alot of other servers.
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jun 25, 2006 10:55 pm
Good point. I did have an idea the other day, that I should make another version of this bot for those of you who go to servers that have Nick/Memo/Chan Serv's. Currently it's not at the top of my list. But I should come around to that sometime soon.
Spot
Comments: 2
 
mIRC Snippet:  iBot v2.1
Posted on Jul 9, 2006 5:46 am
I get this error!

/writeini: insufficient parameters (line 15, iBOT.mrc)

And i dont know anything about to get the bot to join my channel...

And what exactly dos this bot do? :-)

I dont get it, really!
Noutrious
Comments: 365
 
mIRC Snippet:  iBot v2.1
Posted on Jul 18, 2006 3:35 am
Spot, replace
Var %iBot.SetNick.Admin $?="Enter Admin Nickname"
with
var %iBot.SetNick.Admin = $$?="Enter Admin Nickname"
Pibb
Comments: 30
 
mIRC Snippet:  iBot v2.1
Posted on Jul 21, 2006 11:09 pm
Sorry I haven't been updating. I'm gettting ready to leave town for a few days. Then I will be back next Friday, and I will start working on it then.

To Spot:
Read my updates, and those are the features of the bot.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom