Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Pages: [1] 2   Go Down
  Print  
Author Topic: Chat Plugin  (Read 7107 times) Bookmark and Share
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2006
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« on: September 26, 2009, 12:13:38 AM »

Chat Plugin by walker from 1stsop:

v1.0.0 (original by Walker): http://www.1stsop.nl/b3/chat.zip
latest version: http://www.bigbrotherbot.com/forums/downloads/?sa=view;down=31
« Last Edit: November 14, 2009, 03:59:01 PM by Courgette » Logged


Jr. Member
**
Posts: 23
Offline Offline
« Reply #1 on: September 26, 2009, 01:39:19 AM »

Now that's been a while Smiley...
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 179
Online Online
WWW
« Reply #2 on: September 26, 2009, 04:17:55 AM »

nice plugin i just added to my server.
Logged

Jr. Member
**
Posts: 23
Offline Offline
« Reply #3 on: September 26, 2009, 04:47:23 AM »

It looks like your console is alive Smiley
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3344
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #4 on: November 14, 2009, 02:02:38 PM »

v1.1.0 : add keywords $time and $nextmap
Logged

Jr. Member
**
OS: Linux
Type: Gameserver Rental Co.
Gameservers: CoD, CoD2, CoD4, CoD5
Posts: 16
Offline Offline
« Reply #5 on: April 03, 2010, 03:37:32 PM »

Sorry, still new to this, but what exactly does a "Chat Plugin" do?  Could someone provide a description of what this plug does.


Thank you!
Logged
Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #6 on: April 03, 2010, 03:46:16 PM »

Quote
###################################################################################

Chat plugin (v1.0.0) for B3
###################################################################################

This plugin will let the console react on ingame chat messages and so, your console
will come alive Smiley...

Some basic reactions are configured in the plugin_chat.xml config file.

It is possible to configure multiple reactions on one trigger. The bot will
then choose one reaction out of the available ones when the chat trigger fires.

The 'triggers' are highly configurable because they are written in regular
expressions. Examples are included.

Quote
<messages>
      <message>
         <comment>If someone types 'help' without the !</comment>
         <trigger>^( help )$</trigger>
         <reaction>Type ^3!help^7 to see all my options $player</reaction>
      </message>
      <message>
         <comment></comment>
         <trigger>(cheat)</trigger>
         <reaction>Cheaters are the biggest dumbass losers ever!</reaction>
         <reaction>We do NOT like cheaters... hope they make mistakes real soon</reaction>
         <reaction>A good cheater is a dead cheater!</reaction>
         <reaction>Cheaters are like cochroaches, they should be squashed!</reaction>
      </message>
      <message>
         <comment>If someone types 'name foo', console will react and try to help</comment>
         <trigger>^( name)</trigger>
         <reaction>You should change your name in your multiplayer options $player</reaction>
      </message>
      <message>
         <comment>Hi reaction</comment>
         <trigger>\sh[eoa]*[ij]\s|\sh[ea]+l+o+\s|\sheej?\s|\se+j\s</trigger>
         <reaction>Hi there $player!</reaction>
         <reaction>Hello there yourself $player!</reaction>
         <reaction>Howdy doody $player!</reaction>
      </message>
      <message>
         <comment>Recruiting questions</comment>
         <trigger>(((cruit)|(join)).*((sop)|(clan)|(you)))|(((sop)|(clan)|(you)).*((cruit)|(join)))</trigger>
         <reaction>One can only join 1stSoP by invitation $player.</reaction>
      </message>
   </messages>

Description isn't really clear, but by looking at the config and readme in the file it puts triggers on chat for automated responses...
Logged

B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #7 on: April 03, 2010, 06:15:37 PM »

Code:
<message>
                        <comment>azza2</comment>
                        <trigger>( hacker )</trigger>
<reaction>^7Post a demo or STFU</reaction>
                        <reaction>^7some day, you'll get just as good $player</reaction>
                </message>

If some one types
Quote
hacker
 they will get
Quote
Post a demo or STFU
or will get
Quote
some day, you'll get just as good $player

Logged
Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 40
Offline Offline
« Reply #8 on: April 12, 2010, 07:43:55 AM »

Or my favorite. Smiley


Code:
<message>
<comment>Skajaquada WILL ban you too!</comment>
<trigger>^( .*skaj.* )$</trigger>
<reaction>Skajaquada ^1WILL ^7ban you too!</reaction>
</message>

Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #9 on: August 11, 2010, 04:54:16 AM »

Hello,

I think there is a bug in the detection of regexprssion that contains more than 1 word.

Here is a basic example of what I tried to do :
Code:
<message>
<comment>time</comment>
<trigger>^( time | what time )</trigger>
<reaction>^2$time</reaction>
</message>

It detects "time" successfully, but not "what time". Ive tried many other alternatives, none worked.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3344
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: August 11, 2010, 04:57:58 AM »

have you tried
Code:
<message>
<comment>time</comment>
<trigger>(time|what\s+time)</trigger>
<reaction>^2$time</reaction>
</message>
« Last Edit: August 11, 2010, 05:00:10 AM by Courgette » Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #11 on: August 12, 2010, 12:47:24 AM »

have you tried
Code:
<message>
<comment>time</comment>
<trigger>(time|what\s+time)</trigger>
<reaction>^2$time</reaction>
</message>

Yes, it doesn't work. But from what I could read in the DB in penalties, I think I've got a clue : the spaces are removed prior to the detection of strings. I will try by removing any space instead.
Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #12 on: August 19, 2010, 03:02:49 AM »

my own config :

Code: xml
		
Hackers/cheats
((cheat)|(cheats)|(cheater)|(cheating)|(hacker)|(hack)|(aimbot)|(wallhack))
^2/record a demo and post it on www.^7superbots.org ^2instead of cursing
           ^2you'll see, $player, some day, you'll get just as good


Camping
((camp)|(camper)|(camping)|(flagcamp)|(flagcamper)|(flagcamping))
^2Go to ^1supeR^5,^7CTF2^2, there is an automatic anti-camp system


Lag (but not delag or flag or unlag)
(^ |re|[^du][^enf])((la[g]+[s]*)|(lagin)|(laggin)|(lagging)|(lagger)|(connection))
^2Go to ^1supeR^5,^7CTF2^2, there is _full_ delag for _all_ weapons
^2To optimally reduce lag, set ^3/snaps 25^2, ^3/cl_maxPackets 125 ^2and ^3/rate 25000


If someone types 'name foo', console will react and try to help
^( name)
^2You should change your name in your multiplayer options $player or type /name


Hi reaction
\sh[eoa]*[ij]\s|\sh[ea]+l+o+\s|\sheej?\s|\se+j\s
^2Hi $player
^2Hello $player
^2Hi there $player!
^2And here comes... DA $player!
Logged
B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #13 on: August 19, 2010, 03:17:23 AM »

or you can just be lazy like I :
Code:
<message>
                        <comment>time</comment>
                        <trigger>(((time)))</trigger>
                        <reaction>^4$time</reaction>
                </message>
Logged
Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: UrT
Posts: 123
Offline Offline
« Reply #14 on: September 03, 2010, 07:44:21 AM »

is it different
Code:
<comment>If someone types 'name foo', console will react and try to help</comment>
         <trigger>^( name)</trigger>
         <reaction>You should change your name in your multiplayer options $player</reaction>
to
Code:
<comment>If someone types 'name foo', console will react and try to help</comment>
         <trigger>^(name)</trigger>
         <reaction>You should change your name in your multiplayer options $player</reaction>
where "name" isn't empty.
is there a different reaction?

then:
Code:
<comment>Recruiting questions</comment><trigger>(((cruit)|(join)).*((sop)|(clan)|(you)))|(((sop)|(clan)|(you)).*((cruit)|(join)))</trigger><reaction>One can only join 1stSoP by invitation $player.</reaction>
i try to write "cruit" but doesn't work.
i don't understand what's the cause.

thank you for this 2 things!
Logged
Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal