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
}
}
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?
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. ☼_☼
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
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.