botserv speak

By Gemster on Feb 12, 2008

Hi this is for use with services ie: botserv.
It will use say and act commands in an active channel
And as all my work its in a neat dialog :P

edit boxes have been made bigger so you can add more text in it

to use it copy and paste in remotes (alt+r)

Have fun :D

menu channel {

Real Botserv Bot:/dialog -m bsv bsv } 

dialog bsv {
  title "Botserv Comes To Life"
  size -1 -1 154 196
  option dbu
  text "Use this to make the botserv bot talk as a real user", 10, 14 5 127 8
  edit %text1, 1, 16 16 121 50, return autohs
  button "Say", 3, 59 72 37 12
  text "Use this to make the boserv bot do a act (ation)", 11, 18 96 122 8
  edit %text2, 2, 15 109 121 50, return autohs
  button "Act", 4, 61 164 37 12
  link "Botserv Comes To Life By Gemster", 7, 36 183 83 8
  box "", 8, 12 -1 129 89
  box "", 9, 11 90 129 90
}

on *:DIALOG:bsv:edit:1: { Set %text1 $did(1) }
on *:DIALOG:bsv:edit:2: { Set %text2 $did(2) }
on *:DIALOG:bsv:sclick:3:{ msg botserv say $active %text1 | did -r $dname 1 | unset -s %text1  }
on *:DIALOG:bsv:sclick:4:{ msg botserv act $active %text2 | did -r $dname 2 | unset -s %text2  } 
}

Comments

Sign in to comment.
Gemster   -  Feb 12, 2008

forgot to say you must be on the channel sop or aop list to use this snippet :P

 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.