Jump to content
Sign in to follow this  
GLOBALELITE.pl

[RSS Pluginy] [ANY] Simple Learning Bot

Recommended Posts

Simple Learning Bot
Explain in easy way: This Bot can learn chat message from texts from players.
Description:
  • A bot that automatically learning chat messege from texts of players.
Console Variables:
  • sm_slbt "" - The interval between each chat. Default: "15.0"
  • sm_slbnv "" - The name of simple learning bot.(using for visible) Default: "*SPEC* {#CDCDCD}YUI <3{default}"
  • sm_slbnt "" - The name of simple learning bot.(using for trigger) Default: "YUI"
Commands:
  • sm_reloadslb - reload the configs learn.cfg and learn_a.cfg.
  • sm_add - add a string from learn.cfg.
  • sm_get - get a string from learn.cfg.
Installation:
  • Put the slb.smx in the addons/sourcemod/plugins/.
  • Put the learn.cfg and learn_a.cfg in the addons/sourcemod/configs/.
  • Put the plugin.slb.cfg in the cfg/sourcemod/.
Requirement: How it works?
Quote:
Player[1] : YUI
Player[1] : Hi
Then the "Hi" string will be added in config learn.cfg question address.

YUI <3 : Player[1], HI
Player[1] : Bye
Then the "Bye" string will be added in config learn.cfg answer address and config learn_a.cfg question address.

Player[1] : YUI
Player[1] : Hi
YUI <3 : Bye <- If "Hi" question(learn.cfg) having an answer, plugin will get answer from config learn.cfg answer address and print it out.
Player[1] : LOL
Then "LOL" string will be added in config config learn_a.cfg answer address.

YUI <3 : Player[1], HI
Player[1] : Bye
YUI <3 : LOL <- If "Bye" question(learn_a.cfg) having an answer, plugin will get answer from config learn_a.cfg and print it out.

YUI <3 : Player[1], Hi
After 15 seconds later.
YUI <3 : Player[2], Hi
Player[1] : Bye <- This answer will not be record because prevent not relative answer.
Changelog:
  • 1.0.0 Prototype of plugins
GitHub:
https://github.com/STARLITENAMO/Simple-Learning-Bot

Attached Files zip.gifSimple-Learning-Bot.zip (162.6 KB) sp.gifGet Plugin or Get Source (slb.sp - 18.1 KB)


Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=301003&goto=newpost

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×