Difference between revisions of "chat resp.txt"

From OpenKore Wiki
Jump to navigation Jump to search
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Kore can automatically reply to chat messages. If the option autoResponse in config.txt in enabled, you can configure Kore's automatic responses in the file chat_resp.txt. This file allows you to configure Kore's responses to messages that contain certain words.  
+
Kore can automatically reply to chat messages. If the option [[autoResponse]] in [[:Category:config.txt|config.txt]] in enabled, you can configure Kore's automatic responses in the file chat_resp.txt. This file allows you to configure Kore's responses to messages that contain certain words.  
  
==Syntax==
+
== Syntax ==
 
The format of this file is simply a set of lines that observes the following syntax:
 
The format of this file is simply a set of lines that observes the following syntax:
 
  <words> (TAB(s)) <responses>
 
  <words> (TAB(s)) <responses>
  
==Details==
+
=== Details ===
 +
----
  
===<words>===
+
; <words>
This is a comma-seperated list of words that Kore will listen to in chat messages. If Kore hears one of these words in received chat messages, it will reply using a random phrase from the corresponding <responses> list.  
+
: This is a comma-seperated list of words that Kore will listen to in chat messages. If Kore hears one of these words in received chat messages, it will reply using a random phrase from the corresponding '''<responses>''' list.  
  
===<responses>===
+
 
This is a comma-seperated list of phrases that Kore will use as possible responses to chat messages.  
+
;<responses>
 +
: This is a comma-seperated list of phrases that Kore will use as possible responses to chat messages.  
  
 
When using chat response, you have to keep in mind that:
 
When using chat response, you have to keep in mind that:
  
{| class="wikitable" border="1"
+
# Kore will not reply to repeating messages from the same player.  
!Value!!Description
+
# Auto-response only works on public and private chat messages, and not on guild or party chat messages.  
|-
+
# Auto-response will not work in towns.  
|align=center|1||Kore will not reply to repeating messages from the same player.  
+
# To simulate real-time typing, there is a small calculated delay before sending a response. This assumes that you can type at a speed of 65 words per minute.  
|-
+
 
|align=center|2||Auto-response only works on public and private chat messages, and not on guild or party chat messages.  
 
|-
 
|align=center|3||Auto-response will not work in towns.  
 
|-
 
|align=center|4||To simulate real-time typing, there is a small calculated delay before sending a response. This assumes that you can type at a speed of 65 words per minute.  
 
|}
 
  
==Examples==
+
== Examples ==
 
The following is an example of an entry in chat_resp.txt:  
 
The following is an example of an entry in chat_resp.txt:  
 +
 
  bot,botter no,I'm not a bot,huh?
 
  bot,botter no,I'm not a bot,huh?
 +
 
In the example above, when someone says something that contains the word "bot" or "botter", Kore will reply with "no", "I'm not a bot" or "huh?".
 
In the example above, when someone says something that contains the word "bot" or "botter", Kore will reply with "no", "I'm not a bot" or "huh?".
  
'''''Note.''''' Lines that begin with the pound sign (#) are comment lines. They are ignored by Openkore.
 
  
[[Category:Control]]
+
[[Category:control]]

Latest revision as of 23:47, 26 April 2021

Kore can automatically reply to chat messages. If the option autoResponse in config.txt in enabled, you can configure Kore's automatic responses in the file chat_resp.txt. This file allows you to configure Kore's responses to messages that contain certain words.

Syntax

The format of this file is simply a set of lines that observes the following syntax:

<words> (TAB(s)) <responses>

Details


<words>
This is a comma-seperated list of words that Kore will listen to in chat messages. If Kore hears one of these words in received chat messages, it will reply using a random phrase from the corresponding <responses> list.


<responses>
This is a comma-seperated list of phrases that Kore will use as possible responses to chat messages.

When using chat response, you have to keep in mind that:

  1. Kore will not reply to repeating messages from the same player.
  2. Auto-response only works on public and private chat messages, and not on guild or party chat messages.
  3. Auto-response will not work in towns.
  4. To simulate real-time typing, there is a small calculated delay before sending a response. This assumes that you can type at a speed of 65 words per minute.


Examples

The following is an example of an entry in chat_resp.txt:

bot,botter	no,I'm not a bot,huh?

In the example above, when someone says something that contains the word "bot" or "botter", Kore will reply with "no", "I'm not a bot" or "huh?".