Raised This Month: $51 Target: $400
 12% 

[ANY] Simple Learning Bot


Post New Thread Reply   
 
Thread Tools Display Modes
Author
_COLOURFUL
Member
Join Date: May 2017
Location: Hong Kong
Plugin ID:
5809
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A bot that automatically learning chat messege from texts of players.
    Old 09-05-2017 , 09:19   [ANY] Simple Learning Bot
    Reply With Quote #1

    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
    File Type: zip Simple-Learning-Bot.zip (162.6 KB, 371 views)
    File Type: sp Get Plugin or Get Source (slb.sp - 463 views - 18.1 KB)
    __________________
    Love Dodgeball

    Last edited by _COLOURFUL; 09-05-2017 at 11:18.
    _COLOURFUL is offline
    Riton9
    Junior Member
    Join Date: Aug 2016
    Location: France
    Old 09-05-2017 , 10:41   Re: [ANY] Simple Learning Bot
    Reply With Quote #2

    Try to explain more clear the "How it work" pls.

    Last edited by Riton9; 09-05-2017 at 10:41.
    Riton9 is offline
    _COLOURFUL
    Member
    Join Date: May 2017
    Location: Hong Kong
    Old 09-05-2017 , 10:57   Re: [ANY] Simple Learning Bot
    Reply With Quote #3

    I will record a video later :/
    Because srsly it is pretty difficult to explain.
    __________________
    Love Dodgeball
    _COLOURFUL is offline
    Vaggelis
    Senior Member
    Join Date: May 2017
    Old 09-05-2017 , 11:17   Re: [ANY] Simple Learning Bot
    Reply With Quote #4

    Why ?
    line 138, while(1 == 1)
    Vaggelis is offline
    _COLOURFUL
    Member
    Join Date: May 2017
    Location: Hong Kong
    Old 09-05-2017 , 11:23   Re: [ANY] Simple Learning Bot
    Reply With Quote #5

    Make it loop infinity.
    The reason i made this because i want to add a customize array size feature later, will not limited 1000 only.
    __________________
    Love Dodgeball
    _COLOURFUL is offline
    ASKER_CZ
    BANNED
    Join Date: Nov 2016
    Old 09-05-2017 , 11:37   Re: [ANY] Simple Learning Bot
    Reply With Quote #6

    As i understand, it should be something like AI which learns from players on server, right? There has been lot of bots like this, and it never ended well xD

    Last edited by ASKER_CZ; 09-05-2017 at 11:38.
    ASKER_CZ is offline
    _COLOURFUL
    Member
    Join Date: May 2017
    Location: Hong Kong
    Old 09-05-2017 , 11:45   Re: [ANY] Simple Learning Bot
    Reply With Quote #7

    RIP me :/
    btw I just did it because I'm alone and wanna find sth to talk but no frds ;c
    And I created this plugin
    That is how this plugin was invented.
    __________________
    Love Dodgeball
    _COLOURFUL is offline
    Timocop
    AlliedModders Donor
    Join Date: Mar 2013
    Location: Germany
    Old 09-05-2017 , 12:58   Re: [ANY] Simple Learning Bot
    Reply With Quote #8

    Quote:
    Originally Posted by _COLOURFUL View Post
    Make it loop infinity.
    PHP Code:
    for(;;) 
    instead to solve redundant test warnings.
    Timocop is offline
    Pala4
    Senior Member
    Join Date: Dec 2007
    Old 09-05-2017 , 13:40   Re: [ANY] Simple Learning Bot
    Reply With Quote #9

    I have not yet looked at the plugin, but it looks like your https://forums.alliedmods.net/showthread.php?t=300251 What's the difference?

    Last edited by Pala4; 09-05-2017 at 13:41.
    Pala4 is offline
    _COLOURFUL
    Member
    Join Date: May 2017
    Location: Hong Kong
    Old 09-05-2017 , 19:40   Re: [ANY] Simple Learning Bot
    Reply With Quote #10

    My previous plugin only able to respond a given answer.It wouldn't learn anything.More seems like an chat filters + responder.
    And this plugin is fully auto learning, record text message send from players.
    __________________
    Love Dodgeball
    _COLOURFUL is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 16:19.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode