Simple Bot Commands

By Shiny on Jan 25, 2010

########################################

This is are simple commands for a bot.

########################################

################

Commands

################

################

!push

!join

!part

!say

?global

################

########################################
#         Made by: Shiny               # 
#This is are simple commands for a bot.#
########################################

################
#   Commands   #
################

################
#    !push     #
#    !join     #
#    !part     #
#    !say      #
#    ?global   #
################

on *:text:!push:#:{
  inc %candy1
  msg $chan There is %candy1 times Pushed
}
on *:text:.join*:#:{
  msg $chan I joined: $2-  
  join $2-
}
on *:text:.part*:#:{
  msg $chan I Parted: $2-  
  part $2-
}
on *:text:!say*:#: {
  msg $chan $2-
}
on *:TEXT:?global*:?: {
  amsg ( $nick ) $2-  
}

Comments

Sign in to comment.
SnoooP   -  Jan 25, 2010

I would becareful ChemicalZ regex is like a child to Napa/Jethro & Gooshie lol

 Respond  
Jethro   -  Jan 25, 2010

You are still missing the point, ChemicalZ. You have to experience yourself with regex to find out how marvelous it can be.

 Respond  
ChemicalZ   -  Jan 25, 2010

Yes gooshie is there a problem with that O.o

Most the things you use regex for can be done using normal functions :|

 Respond  
Jethro   -  Jan 25, 2010

Don't underestimate the convenience and usefulness of regex. If you don't understand how it works, learn it. You wouldn't regret it if you did so.

 Respond  
gooshie   -  Jan 25, 2010

ChemicalZ
You join Hawkee and wait almost a year just to make that your first comment? That is f*cking funny!

 Respond  
napa182   -  Jan 25, 2010

overrated? how so?

 Respond  
ChemicalZ   -  Jan 25, 2010

Regex is so overrated gooshie : |

 Respond  
napa182   -  Jan 25, 2010

figuers....

 Respond  
Shiny   -  Jan 25, 2010

I dont understand lol.

 Respond  
gooshie   -  Jan 25, 2010
on $*:text:/^.(join|part) .+/iS:#:{
  describe # is $regml(1) $+ ing $2
  $regml(1) $2
}
 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.