Advertisement
Guest User

Strip Colors from Batcave

a guest
Dec 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # This is the main section.
  2. event(OnChannelMessage,ColorStrip) {
  3.  
  4. # Don't block my own messages
  5. if($0 == $me){return;}
  6.  
  7. # Creates a variable for the line of text, stripped of whitespace on either side, and stripped of color codes
  8. if($chan.name == "#Batcave")
  9. %l = $str.strip($str.stripcolors($3))
  10.  
  11. # Outputs the text, stripped of color codes
  12. echo %l
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement