Simple Chatter Bot
Description:- A bot that automatically answer the text from player and automatically type some words.
Console Variables:- sm_prefix "" - Prefix, you can fill your Bot Name in here
- sm_suffix "" - suffix, you can fill some emoji in here(?)
- sm_chattime "" - Set the each automatically type words time.
Commands:- sm_reloadscb - reload the configs autochat.cfg and speech.cfg
Installation:- Put the simplechatterbot.smx in the addons/sourcemod/plugins/.
- Put the autochat.cfg and speech.cfg in the addons/sourcemod/configs/.
- Put the AutomaticallyAnswerBot.cfg in the cfg/sourcemod/.
Requirement:Features:
PHP Code:
"Speech"
{
"0" //Do not forget the start is at 0
{
"equal" "Equal" //Perfectly match(case insensitive)
"answer" "Triggered." //An answer
"typetime" "1.2" //The time of typing the text, default is 0.5
//IMPORTANT!!! The data structure of typetime is float point number, do not write it like an integer such as "1"
}
"1"
{
"equal" "Trigger"
"answer" "Triggered."
"condition" "0" //If player want to trigger this answer, then he must trigger Key "0" answer first.
}
"2"
{
"equal" "Random"
"answer" "1"
"answer2" "2" //Support mutli answer, the maximum of multi answer is 6, it will automatically choose one and speech.
"answer3" "3"
"count" "3" //After using those multi answer, you must define how many answer you created.
}
"3"
{
"equal" "One" //Support mutli equal and contains, the maximum of those censorship is 4.
"equal2" "Two" //And those doesn't need to use "count".
"equal3" "Three"
"answer" "Triggered."
}
"4"
{
"equal" "Action"
//"answer" "okay." //You can add it if you want.
"action" "sm_slap #{userid}" //Support ServerCommand.
}
"5"
{
"contains" "Contains" //A part of full text match(case insensitive).
"answer" "Trigger."
}
"6"
{
"contains" "Block"
"contains2" "Restriction" //Same as "equal", support mutliple censorship.
"contains3" "Gag"
"block" "1" //Block user text, 1 = enable.
"answer" "Trigger."
}
"7"
{
"equal" "Cooldown"
"action" "sm_slap #{userid}"
"cooldown" "8.0" //A time that avoid user spamming.Literally same as typetime structure.
"cooldownwarn" "Blocked." //Optional, a text that warning player when they attempted to spam the chat.
"answer" "Trigger."
}
"8"
{
"equal" "Info"
"answer" "{name}{steamid}{userid}" //{name} = PlayerName, {steamid} = PlayerSteamId, {userid} = PlayerUserId.
}
}
Video:
https://www.youtube.com/embed/8Sl0wVLilc4
Changelog:- 1.0.0 Prototype of plugins
- 1.0.1 Fixed contains glitches and added reload config command
- 1.0.2 Added "block", "cooldown", "cooldownwarn" and "flags" feature.
- 1.0.3 Fixed plugin working improperly in CS:GO.
Credits:- Entity - helped me to fix those contains glitches :D
- Pala4 - noticed me plugin working improperly in CS:GO.
GitHub:
https://github.com/STARLITENAMO/Simple-Chatter-Bot