Git Product home page Git Product logo

kyoyobot's People

Contributors

96-lb avatar jason-liau avatar not-so-smart avatar raffaelemannarelli avatar sanketh7 avatar scorpio1147 avatar sleepybuns avatar ysthakur avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

kyoyobot's Issues

Composable trigger types

Currently, to create a new trigger type/parameter set you need to define a new function and all its arguments in toes/triggers.py. This gets a bit unwieldy, as we need to create distinct types for very similar triggers that differ only by one small piece, such as what type of emoji they react with. Since all the trigger types are just compositions of smaller triggers, we could definitely refactor the system in such a way that we don't need to assign special names for each of these types and instead make the smaller pieces accessible from config.jason. For example, instead of a hardcoded "type": "user_reaction_standard" which gets maps to trigger_user_reaction_standard(), we could have something like "type": "user probablility reaction_standard" which gets parsed and sends all its arguments through if_author(), with_probability(), and action_react_standard(). This would prevent us from needing to define a new trigger type in the code if, for example, we decide to make a trigger which reacts and sends a response, as we could just change the type to "type": "user probability reaction_standard response" and pass it through the same logic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.