1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Postbot - Automated Replies to Triggers 1.0

Your forum can respond to !trigger commands posted by permitted users.

  1. Bloodcinder

    Bloodcinder Well-Known Member

    Bloodcinder submitted a new resource:

    Postbot - Automated Replies to Triggers - Your forum can respond to !trigger commands posted by permitted users.

    Read more about this resource...
    Mouth likes this.
  2. iamjudd

    iamjudd Active Member

    If this could work in our shoutbox that would be even better!
  3. Mouth

    Mouth Well-Known Member

    This looks terrific!
    !Weather <cityname> [+n] (where n represent today + n days) would be a great one to have in the included pack
  4. Bloodcinder

    Bloodcinder Well-Known Member

    What shoutbox do you use? TaigaChat? This add-on is pretty intimately tied into the standard posting system, but in the future I plan to release an IM/chat/shoutbox add-on with which it will be compatible. It's theoretically possible to get it to work in third-party add-ons that are structured in a certain way. So let me know what shoutbox you use and I'll look into it.

    I wanted to include that one in the standard triggers, but the problem is that most weather services require a special authentication key to get their data. That's why I settled for the !moon trigger, whose results I could get from the U.S. Naval Observatory without authentication. If I do find a weather service that doesn't require authentication, I'll definitely add it to the pack. If not, I can add one that takes the authentication key as a custom setting and then each admin who installs it can register an account once with the weather service to get the special authentication key to provide to the !weather trigger as a setting. So I'll look into this as well.
    Mouth likes this.
  5. iamjudd

    iamjudd Active Member

    Taiga indeed is what I use!
  6. Yes, I was also going to suggest doing something like implementing it to work with TaigaChat.

    That would be quite cool!

    I had the idea of a bot, but due to my limited knowledge I could not do anything about it.

    Some things to implement into it when adding it to TaigaChat would be like

    adding admin configuration settings to where we can make it do/say certain things in certain senarios

    like our forum is gaming, and we have a strict no porn rule. So say someone linked porn, the bot would step in and go "Please do not post that link, it is against the rules and you will be banned!" or something along those lines. Hell, maybe even set it up to where an admin is able to set permissions for it to do things!
  7. Bloodcinder

    Bloodcinder Well-Known Member

    Integration with TaigaChat is beyond the scope of this add-on. The work to achieve that would amount to writing a brand new add-on. You'd be better off requesting that the developer of TaigaChat implement automation features.
    Console Crunch likes this.
  8. Betclever

    Betclever Active Member

    Hello @Bloodcinder

    It doesn't work on my forum.
    I don't know why but I'm writing "by ex" this and it doesn't work... I don't have any answer or auto-response => !help

    I have tried with !moon, !shuffle,... and same results...

    What's wrong please?
  9. Bloodcinder

    Bloodcinder Well-Known Member

    I assume either the add-on was not installed correctly or there is a conflict with another add-on. I would not be able to diagnose this without administrative access to your forum.
  10. Iversia

    Iversia Well-Known Member

    Really, really fun to play with @Bloodcinder! I just made a trigger that allows users to tip each other using our forum currency (example). Now I can publicly award people in threads for doing neat/useful things. Super cool. :)
    Bloodcinder likes this.
  11. Bloodcinder

    Bloodcinder Well-Known Member

    Very nice! I'm glad to see it put to good use.

    If you don't want your robot's avatar to appear shrunken, you can disable the template modification that says "Reduces the size of the Postbot by Bloodcinder message user info" and it will show like a normal user.
    Iversia likes this.
  12. Wesker

    Wesker Active Member

    Great mod. Could really use a PREMIUM version of this.

    Just tried getting this setup myself, tons of errors. It takes alot of work to fix this to the point need outside help for this.
  13. A Jewel of Rarity

    A Jewel of Rarity New Member

    I'm just wondering since I am super simple, how would I make it trigger plain text?
  14. Bloodcinder

    Bloodcinder Well-Known Member

    I don't understand what you mean. Can you clarify?
  15. A Jewel of Rarity

    A Jewel of Rarity New Member

    Just if you trigger it it has just a simple reply, no shuffling or selecting from an array
    ex: !SayHello
  16. Bloodcinder

    Bloodcinder Well-Known Member

    Look in the List Triggers panel and examine the !8ball trigger, then examine the Bloodcinder_Postbot_Trigger_Callback_Stock class's magic8ball function. That'll give you an example similar to what you want to achieve. Add your own trigger and source code that works similarly. You need to know how callbacks work and how to edit PHP source code.
  17. Glen Anderson

    Glen Anderson Member

    Can we disable the minimization?
    StarArmy likes this.
  18. Glen Anderson

    Glen Anderson Member

    Boy would it be great if there was a way to get rid of that minimization :)
    StarArmy likes this.
  19. Bloodcinder

    Bloodcinder Well-Known Member

    Go to Admin CP -> Appearance -> Template Modifications. Disable (by un-checking) both of the modifications for Postbot on this page. Then the postbot's posts will look like a normal user's posts.
  20. Glen Anderson

    Glen Anderson Member


Share This Page