SHARE
TWEET

Mineflayer chat patterns

Darker666 Jul 28th, 2015 191 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bot.chatAddPattern(/^\[ ?([^\s]+) \-> me ?\] (.*)$/, "whisper", "Extremecraft formating '[Name -> me] text'");
  2. bot.chatAddPattern(/^([^\s]+) has requested (to teleport to you|that you teleport to them).$/, "chat_tpa", "Essentials /tpa requests");
  3. bot.chatAddPattern(/^(Session login\.\.\.|Login successful!)$/, "chat_login", "Essentials login.");
  4.  
  5. //
  6. bot.chatAddPattern(/^ *\[ *(?:Member|Helper|JrHelper|Admin) *\] *([^\s]+) *» *(.*)$/, "chat", "Factions [Role] name.");
  7. bot.chatAddPattern(/^ *\[ *[\+\-\*]+[a-zA-Z0-9]{3,16} *\] *\[ *(?:Member|Helper|JrHelper|Admin) *\] *([^\s]+) *\» *(.*)$/, "chat", "Factions [FACNAME][Role] name.");
  8.  
  9.  
  10. bot.chatAddPattern(/^\( *([^\s]+) *\) *(.*)$/, "chat", "Factions party chat: (NAME) message");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top