Postbot - Automated Replies to Triggers

Postbot - Automated Replies to Triggers 1.0

No permission to download

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.

Postbot add-on for XenForo
by Bloodcinder

This add-on allows your forum to automatically respond to trigger codes posted by your users in threads using PHP callbacks. This add-on comes with several example triggers, and I will release other triggers in "packs" that you can download. Developers can make your own triggers by defining them in the admin control panel and providing an appropriate PHP callback script.

For an example, if the user enters:

Read more about this resource...
 
This looks terrific!
!Weather <cityname> [+n] (where n represent today + n days) would be a great one to have in the included pack
 
If this could work in our shoutbox that would be even better!
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.

This looks terrific!
!Weather <cityname> [+n] (where n represent today + n days) would be a great one to have in the included pack
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.
 
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.
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!
 
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.
 
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?
 
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.
 
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. :)
 
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.
 
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.
 
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.
 
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.
 
Top Bottom