Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----regex alias----
  2. ^(say to \w+|say|'|")(.*)$
  3.  
  4. ----javascript-----
  5. x = Math.floor((Math.random() * 20)+1);
  6.  
  7. switch (x){
  8.        
  9.    case 1:
  10.        voice = "(in a voice barely above a whisper)";
  11.  
  12.        break;
  13.    case 2:
  14.        voice = "(in a harsh rasp tinged with madness)";
  15.        break;
  16.    case 3:
  17.         voice = "(with a tone of calm assurance)";
  18.        break;
  19.    case 4:
  20.         voice = "(with a sudden and strange break in inflection)";
  21.        break;
  22.        
  23.    default:
  24.        voice = "";
  25.        //send_command(""+args[1]+" "+args[2] , 1);
  26. }
  27.  
  28. send_command(""+args[1]+" "+voice+" "+args[2] , 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement