AnimeSpotBot

By ChunkieMonkey on Jul 16, 2008

This is a start to a bot I am making for my #Animespot on ircbitsjointirc.net and irc.lucidchat.net . The only thing is I don't know if the script is messed up or my scripts editor. Put in remotes alt + r Please comment and help! Incomplete

Updates from help in comments --
Added the !Binfo command --
Added !info --
added !winfo --
Update #3

On *:Join:%chanset: {
 Msg %chanset 4Hello there 7 $nick 12 Welcome to 7 %chanset 12 Type !bhelp if you Need Help! Bot not fully done
 Msg Chanserv voice %chanset $nick
  }
On *:TEXT:*:%chanset:{
 If ($chan == %chanset) {
 If ($1 == !bhelp) Msg $nick 4 Hello 7 $nick $+ . 4 Welcome to 12 %chanset 4 Please type !help Followed by one of the following catergories: Bar , Food , Anime , Info . Example: !bhelp Bar
 If ($1 == !bhelp_bar) Msg $nick Hi 7 $nick 4 Commands for Bar are: !Tea !Sake !Vodka !Water
 If ($1 == !bhelp_Food) msg $nick 12Commands for 12 Food 123 Are:  2 !Salad 3 !Soup 4 !Sushi 6 !Ramen
 If ($1 == !bhelp_Anime) Msg $nick 4 Hello 7 $nick 4 the commands for 12 Anime 4 are: 4 !info 12 [anime] 14 ; 7 This will give you info on a certain anime of your choice. !SubmitAnime [anime name] 7 This will send me a request to enter the said anime into my database, then if accepted my owner will set info for the anime.
 If ($1 == !Bhelp_Binfo)  Msg $nick 7 !Binfo 4 Will give you a little info, or biography of me
 If ($1 == !tea) describe $chan 4 Pulls out a small clear glass and a bottle of expensive looking tea. 5 Then he would poor the liquid in the clear cup, and set it in front of 7 $nick . 14 "Enjoy $nick $+ "
 If ($1 == !Sake)  Describe $chan Grabs a glass from under the counter and a bottle from the racks of bottles behind him. He would then poor the sake into 7 $nick $+ s' glass and serve it. 14 Enjoy $nick $+ "
 If ($1 == !vodka) describe $chan 4 Would hand 7 $nick 4 a small glass bottle of a clear liquid with a heavy smell to it. 14 "Enjoy $nick $+ "
 If ($1 == !water) Describe $chan 4 He would mumble something before throwing a bottle of ice cold spring water at $nick $+ . 14 "Insult my bar why don't you?"
 If ($1 == !salad) Describe $chan 4 Would give $nick a bowl of salad. 14 "Why I have salad in my bar is beyond me, bring it up with Artemis_Fowl"
 If ($1 == !soup)  Describe $chan 4 Would give $nick some old soup 14 "Brand new, just for you $nick $+ !"
 If ($1 == !Sushi) Describe $chan 4  Makes 6 sushi rolls and delivers them to $nick 14 "Enjoy"
 If ($1 == !Ramen) Describe $chan 4 Frys noodles, fish, and various other ingredients and throws then in a sauce. He would then serve it to $nick 14 "Enjoy"
 If ($1 == !Binfo) Msg $nick I am a anime bot ran and scripted by Artemis_Fowl. I have a drink bar, food bar, and info on anime. More coming soon.
  }
}
On *:TEXT:!Submitanime*:%chanset:{
 If (bitch isin $1) { Halt } Notice $nick 'bitch' is not appropriate.
 If (fuck isin $1) { Halt } Notice $nick 'fuck' is not appropriate.
 If (cunt isin $1) { Halt } Notice $nick 'cunt' is not appropriate.
 Writeini $1 $+ .ini Info none
 Writeini $1 $+ .ini ainfo none
  }
}
On *:TEXT:!info*:%chanset:{
 If ($readini($1 $+ .ini,info) == yes) { Halt }
 Msg %chanset the info for $1 is:
  .timer 1 2 msg %chanset ($readini( $1 $+ .ini,ainfo)
 elseif ($readini($1 $+ .ini,info) == no) { Halt } 
 Msg %chanset No info for $1 $+ .
  }
}
On 5:TEXT:!winifo*:%chanset:{
 If ($readini($1 $+ .ini,info) {
 Write ini $1 $+ .ini Info $2
 Msg %chanset $nick has updated info for $1
  }
}

Comments

Sign in to comment.
ChunkieMonkey   -  Aug 24, 2008

This is a old piece of shit bot I was making for a channel. I stopped a while ago. Now my turn. wtf is the point of commenting on old scripts nobody else does?

 Respond  
beau   -  Aug 24, 2008
On *:TEXT:!Submitanime*:%chanset:{
 If (bitch isin $1) { Halt } Notice $nick 'bitch' is not appropriate.
 If (fuck isin $1) { Halt } Notice $nick 'fuck' is not appropriate.
 If (cunt isin $1) { Halt } Notice $nick 'cunt' is not appropriate.
 Writeini $1 $+ .ini Info none
 Writeini $1 $+ .ini ainfo none
  }
}

Mismatch of brackets, and what is the point of this?

 Respond  
ChunkieMonkey   -  Jul 17, 2008

I changed it to elseif like you said

 Respond  
guest598594   -  Jul 17, 2008
 Else
 If ($readini($1 $+ .ini,info) == no) { Halt } 

I\'m not sure if that works, but you can just use elseif.

 Respond  
ChunkieMonkey   -  Jul 17, 2008

Updated. Not sure if the readinis work, i couldn\'t test it because my mirc is messed up. Please help!

 Respond  
Trikloa   -  Jul 16, 2008

Also, rather than putting \'if ($chan == %chanset)\' you could just replace the # in your event bar with %chanset like this:

On *:Join:%chanset: {
 Msg %chanset 4Hello there 7 $nick 12 Welcome to 7 %chanset 12 Type !bhelp if you Need Help! Bot not fully done
 Msg Chanserv voice %chanset $nick
  }

That\'s the only thing I\'ve noticed, that the others haven\'t covered. ☼_☼

 Respond  
ChunkieMonkey   -  Jul 16, 2008

x.x later, but thanks

 Respond  
napa182   -  Jul 16, 2008

you are still missing a closing bracket on the on join event as well as you have a problem with a few of ur commands
If ($1 == !bhelp bar)
If ($1 == !bhelp Food)
If ($1 == !bhelp Anime)
If ($1 == !Bhelp Binfo)
um maybe make them
!bhelp_bar
!bhelp_Food
!bhelp_Anime
!Bhelp_Binfo
cuz if you dont the way you have it.. it will only read the !bhelp
or you can make the $1 into $1-
either or

 Respond  
EL   -  Jul 16, 2008

Np your welcome.`-.-´

 Respond  
ChunkieMonkey   -  Jul 16, 2008

Done with editing, thanks both of you.

 Respond  
ChunkieMonkey   -  Jul 16, 2008

How about I just decrease the amount of timers? Because I did x.x

--edit

I will do what you said though, thanks EL

 Respond  
EL   -  Jul 16, 2008

Add a . (Period) in front of the word timer: .timer

 Respond  
ChunkieMonkey   -  Jul 16, 2008

How do you \'silence timers?\'

 Respond  
EL   -  Jul 16, 2008

Silence those timers add flood pros and make it all one text event like MD\'s example.`-.-´

 Respond  
ChunkieMonkey   -  Jul 16, 2008

x.x I get it, thanks lol

 Respond  
guest598594   -  Jul 16, 2008

Nah it works with anything.

Mountain $+ Dew --> MountainDew
M $+ ountainDew --> MountainDew
$+([,MountainDew,]) --> [MountainDew]

 Respond  
ChunkieMonkey   -  Jul 16, 2008

Thanks mountaindew, I might use that when i edit again. and for the $+ part I\'ve thought about it, but I thought that only worked with $nick $+ .ini ? Anyroad thanks.

 Respond  
guest598594   -  Jul 16, 2008

Rather than checking if ($chan == %chanset) a million times, I would just do something like:

on *:text:*:#:{
  if ($chan == %chanset) {
    if ($1 == !tea) describe $chan does something with tea
    if ($1 == !soup) describe $chan does something with soup
  }
}

And btw, you can join two things by using $+

\"Brand new, just for you $nick !\"

If you do $nick $+ !\", it\'ll join the two.

 Respond  
ChunkieMonkey   -  Jul 16, 2008

Please help and comment!!!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.