cool plugin lincoln
I really like this plugin, the most interesting one I've seen in a while because it is so different. Thanks for sharing it.
I noticed a couple of things - not sure if it was intention or not. (I tested with version 1.0 of plugin and vanilla 2.1b2
- I will try 1.1 of the plugin later (not sure if you made other changes besides removing extra ). I added strtolower on both sides of the comparison as well for the simple match
1) occasionally the system response will precede the message it is responding to.
2) when entering a discussion the matches and reply by system will not occur.
3) system only replies to comments (in other words not the discussion post itself).
I added a few items to play around with. I'm looking forward to executing other actions with this plugin besides system replies.
In image 1 - the discussion is not responded to by system. I added another comment muffin man, system then responded but the system comment preceded my comment.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Comments
Can you make the reply be a link to a song ? btw I know who is the muffin man
http://www.youtube.com/watch?v=qwIrXOtZyvQ
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
yes just add this to botreplies.php
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Theoretically just replying with the YouTube link should do all that, no?
1) Bizarre! I've never seen that. I'll look into it. If you can track it down I'd appreciate it.
2 & 3) This is true. I guess I don't really like the idea of the bot being the first reply or starting discussions with the intent of triggering the System bot. In any case, I purposefully only triggered it on comments. I could be persuaded to change it but I guess I don't intrinsically see the value.
Thanks for the kind words
here's a mod to work with the discussion - you could probably do it more elegantly.
I just wanted to see if I could do it. seems to work
public function PostController_AfterCommentSave_Handler($Sender, $Args) {
$this->ShwaiSave($Sender, $Args);
}
public function PostController_AfterDiscussionSave_Handler($Sender, $Args) {
$this->ShwaiSave($Sender, $Args);
}
public function ShwaiSave($Sender, $Args) {
if (!GetValue('Editing', $Args)) {
$Comment = GetValue('Comment', $Args);
if (!$Comment)
$Comment = GetValue('Discussion', $Args);
$Bot = new ShwaipBot();
$Bot->SetDiscussion(GetValue('Discussion', $Args));
$Bot->SetInstigator(UserBuilder($Comment, 'Insert'));
$Bot->EvaluateReplyTo(GetValue('Body', $Comment));
$Bot->Say();
}
}
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I agree, this is a very interesting plugin. I am thinking about using it on one of my forums for automated answers to some tech support FAQ like "how do I reboot in safe mode?" or "how do I reset the PRAM?".
Yes it does actually but with peregrines code you can style it to fit the space better.
This would be great to use as a vj or dj. You could simply load the replies with the links and whenever anyone writes play The Macarena, then the bot simply posts the link.
Good aid for teaching too
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
It's pretty cool you can also program it to have system reply based on comment counts and discussion count, reactions, etc. e.g. First comment for poster "Welcome Aboard"
300th comment by poster "We love your stuff - keep posting". It could also be modifed to do something to add to activity comments as well.
All cool. This plugin can be taken in thousands of directions, for faqs, links messaging emailing etc.
This plugin has proven to be alot of fun.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@rbrahmson potential counterpoints:
In my mind, this would make creating a response tree easier but it wouldn't help in any other case. If you do want something that is easier to write, maybe look into JSON objects?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
This is very interesting concept! bot auto reply to message! I will surely take a closer look.
Thanks
@hgtonight offered very good points that deserve feedback, so here it is:
First, I am of the opinion/vision that Vanilla can/should be used by forum administrators that do not need to have programming skills. With all due respect to programmers (and they do deserve the respect), there is a larger community out there and I hope to bring Vanilla to a wider audience. Thus all solutions that require the use of PHP, JSON objects and other tools of the trade limit solutions to a smaller audience than I envision.
Indeed, but that syntax is intentionally simple and is intended for non-programmer administrators.
I am not married to this syntax, just offering a sample suggestion for a simple syntax.
True, but that is always the first non-blank character in the line so it's not that hard to parse. But again, I am not married to that specific syntax, merely offering an example.
Also True, but I am not looking for a full-blown language. For that there is PHP...
I want to take advantage of @hgtonight's use of the term "variable" into another meaning -- that I have not offered variable substitutions. That is intentional for I make the case that variable substitution should not be limited to the BOT -- it should work everywhere (and how to do that can be discussed &elsewhere;-) -- there may be another plugin for that.
Again, I am intentionally looking for simplicity for the non-programmers audience.
@rbrahmson Fair points.
My take on this is that your proposal (single text file with a simple markup) doesn't go far enough for the non-programmer audience. It still requires you learn something to program the bot. What's worse is that it uses a custom markup language so there is no hope someone already knows it.
I would suggest creating a nice GUI for creating response trees that compiles a botreplies.php file. Something simple yet powerful like a couple of text boxes. Everyone that can use a forum already knows how to use those. Then add in a drag'n'drop list for re-ordering the reply order. This all could be done via a plugin called Basic Response Trees that depend on schwaip bot plugin.
This xkcd comes to mind:
All that said. I think it is a good idea to create a better user experience for forum admins.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight: Very good point which I wholly accept. I was looking for something simpler than PHP and you leapfrogged me with an interactive dialog which is way better because it shields the admins from the syntax question altogether. Anything that reduces the forum admins learning curve!
And BTW, this is/was a very good dialog- I wish there were more participants in that dialog...