Hello,
where i'm wrong with this config
{
"Chat Prefix": "Bot",
"Show Chat Prefix": true,
"Bot Icon (SteamID)": 0,
"Cooldown Between Auto Responses For User": "10s",
"Global Cooldown Between Auto Responses": "2s",
"Use Default Chat (0), Chat Plus (1), Better Chat (2)": 2,
"Debug": true,
"Allow Multiple Auto Responses": true,
"Minimal Time Between Message And Answer": 1,
"Maximal Time Between Message And Answer": 5,
"Welcome Message": [
"Welcome, {name}!",
"Hello, dear {name}!",
"Hello, {name}! Your IP: {ip}"
],
"Welcome Message Enabled": false,
"Joining Message": [
"Welcome, {name} ({id}, {ip})!",
"Hello, dear {name} ({id}, {ip})!",
"{name} came from {country} ({countrycode})"
],
"Leaving Message": [
"Bye, {name} ({id}, {ip})!\nReason: {reason}",
"{name} ({id}, {ip}) left the game. Reason: {reason}",
"{name} from {country} ({countrycode}) just left the game!"
],
"Joining Message Enabled": false,
"Leaving Message Enabled": false,
"Show Joining Message To Player That Joined": false,
"Show Leaving Message To Player That Left": false,
"Auto Messages": [
{
"Permission": "smartchatbot.messages",
"Message Frequency": "5m",
"Auto Messages": [
{
"Is Enabled": false,
"Message": "Do not mind, I am just a stupid bot."
}
]
}
],
"Auto Responses": [
{
"Permission": "smartchatbot.response",
"Auto Responses": [
{
"Is Enabled": true,
"Remove Message From Sender": false,
"Send Response For Everyone (true) or Only For Sender (false)": false,
"Triggers": [
{
"Percentage Of Contained Words": 0.25,
"Regex Enabled": true,
"Words": [
"regles",
"règles",
"règlement",
"info"
]
}
],
"Answers": [
"Tape /info pour connaître les règles ainsi que toutes les commandes !"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.50,
"Regex Enabled": true,
"Words": [
"rules",
"rule"
]
}
],
"Answers": [
"See /rules for see all infos and rules for this server! (/info is available for french user's only)"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.75,
"Regex Enabled": true,
"Words": [
"next",
"wipe",
"wiped"
]
}
],
"Answers": [
"Tape /info pour connaître le prochain wipe !",
"See /rules for see the next wipe !"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.15,
"Regex Enabled": true,
"Words": [
"blue",
"bleu",
"scientists",
"smurf",
"murderer",
"zombie",
"npc"
]
}
],
"Answers": [
"Les scientifiques/Zombies sont présents sur ce serveur. Scientists/Zombie are present on this server."
]
}
]
}
]
}
nothing work... can you help me please?
Cheers,
Merged postSorry for double post, don't know if get merged auto by cms but with debug:
[Smart Chat Bot] DEBUG: Called HandleBroadcast
[Smart Chat Bot] DEBUG: Active Message: 0
Merged postI don't understand how it works, the default configuration works, the bot responds if we write "How this bot".
so ok, apparently we can not add multiple answers.
{
"Chat Prefix": "<color=#787FFF>F4F </color>",
"Show Chat Prefix": true,
"Bot Icon (SteamID)": 0,
"Cooldown Between Auto Responses For User": "10s",
"Global Cooldown Between Auto Responses": "2s",
"Use Default Chat (0), Chat Plus (1), Better Chat (2)": 2,
"Debug": true,
"Allow Multiple Auto Responses": true,
"Minimal Time Between Message And Answer": 1,
"Maximal Time Between Message And Answer": 5,
"Welcome Message": [
"Welcome, {name}!",
"Hello, dear {name}!",
"Hello, {name}! Your IP: {ip}"
],
"Welcome Message Enabled": false,
"Joining Message": [
"Welcome, {name} ({id}, {ip})!",
"Hello, dear {name} ({id}, {ip})!",
"{name} came from {country} ({countrycode})"
],
"Leaving Message": [
"Bye, {name} ({id}, {ip})!\nReason: {reason}",
"{name} ({id}, {ip}) left the game. Reason: {reason}",
"{name} from {country} ({countrycode}) just left the game!"
],
"Joining Message Enabled": false,
"Leaving Message Enabled": false,
"Show Joining Message To Player That Joined": false,
"Show Leaving Message To Player That Left": false,
"Auto Messages": [
{
"Permission": "smartchatbot.messages",
"Message Frequency": "5m",
"Auto Messages": [
{
"Is Enabled": false,
"Message": "Do not mind, I am just a stupid bot."
}
]
}
],
"Auto Responses": [
{
"Permission": "smartchatbot.response",
"Auto Responses": [
{
"Is Enabled": true,
"Remove Message From Sender": false,
"Send Response For Everyone (true) or Only For Sender (false)": true,
"Triggers": [
{
"Percentage Of Contained Words": 0.1,
"Regex Enabled": false,
"Words": [
"regles",
"règles",
"règlement",
"info"
]
}
],
"Answers": [
"Tape /info pour connaître les règles ainsi que toutes les commandes !"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.15,
"Regex Enabled": false,
"Words": [
"rules",
"rule"
]
}
],
"Answers": [
"See /rules for see all infos and rules for this server! (/info is available for french user's only)"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.15,
"Regex Enabled": false,
"Words": [
"next",
"wipe",
"wiped"
]
}
],
"Answers": [
"Tape /info pour connaître le prochain wipe !",
"See /rules for see the next wipe !"
],
"Triggers": [
{
"Percentage Of Contained Words": 0.1,
"Regex Enabled": false,
"Words": [
"blue",
"bleu",
"scientists",
"smurf",
"murderer",
"zombie",
"npc"
]
}
],
"Answers": [
"Les scientifiques/Zombies sont présents sur ce serveur. Scientists/Zombie are present on this server."
]
}
]
}
]
}
Only blue, bleu, zombie words work fine for a answer.... other rules doesn't work...
My test with my config file
[Better Chat] [Player] Tanki: info
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004403
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0
[Better Chat] [Player] Tanki: rules rule
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004406
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0
[Better Chat] [Player] Tanki: rules
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004423
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0
[Better Chat] [Player] Tanki: wipe wiped next wipe
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004428
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0
[Better Chat] [Player] Tanki: wipe next wipe
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004433
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0
[Better Chat] [Player] Tanki: wiped next wipe
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004438
[Smart Chat Bot] DEBUG: lastSent: 1570004245
[Smart Chat Bot] DEBUG: Matched: 0.1428571
[Smart Chat Bot] DEBUG: Matched message
[Smart Chat Bot] DEBUG: Matched. Changing cooldown info.
[Better Chat] [Player] Tanki: bleu
[Smart Chat Bot] DEBUG: Called Publish
[Smart Chat Bot] DEBUG: Message: Les scientifiques/Zombies sont pr├®sents sur ce serveur. Scientists/Zombie are present on this server.
[Smart Chat Bot] DEBUG: Permission:
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004447
[Smart Chat Bot] DEBUG: lastSent: 1570004438
[Better Chat] [Player] Tanki: zombie
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004454
[Smart Chat Bot] DEBUG: lastSent: 1570004438
[Smart Chat Bot] DEBUG: Matched: 0.1428571
[Smart Chat Bot] DEBUG: Matched message
[Smart Chat Bot] DEBUG: Matched. Changing cooldown info.
[Better Chat] [Player] Tanki: smurf
[Smart Chat Bot] DEBUG: Called Publish
[Smart Chat Bot] DEBUG: Message: Les scientifiques/Zombies sont pr├®sents sur ce serveur. Scientists/Zombie are present on this server.
[Smart Chat Bot] DEBUG: Permission:
[Smart Chat Bot] DEBUG: Called HandleBroadcast
[Smart Chat Bot] DEBUG: Active Message: 0
[Smart Chat Bot] DEBUG: Called OnBetterChat
[Smart Chat Bot] DEBUG: Called HandleChatMessage
[Smart Chat Bot] DEBUG: tNow: 1570004466
[Smart Chat Bot] DEBUG: lastSent: 1570004454
[Smart Chat Bot] DEBUG: Matched: 0.1428571
[Smart Chat Bot] DEBUG: Matched message
[Smart Chat Bot] DEBUG: Matched. Changing cooldown info.
[Better Chat] [Player] Tanki: zombie
[Smart Chat Bot] DEBUG: Called Publish
[Smart Chat Bot] DEBUG: Message: Les scientifiques/Zombies sont pr├®sents sur ce serveur. Scientists/Zombie are present on this server.
[Smart Chat Bot] DEBUG: Permission: