محول Hubot لـ Discourse

Okay, could you try running the post-create-listener of Babble to see if that fixes it?

إعجابَين (2)

Oh excellent, that did it, thank you! I can confirm that posts are coming up as expected now.

إعجاب واحد (1)

Okay, I’ve merged that branch into master now, and bumped the version, so this should work in Babble from now on. :+1:

إعجاب واحد (1)

I am confused about what is the best method to create the discourse user accounts for bots!
I would like to make several accounts similar to discobot that don’t have a valid email address and are dedicated for API use, is there a commandline way to do that? “rake admin:create” sanity checks the email address before creating the user.

Our environment has SSO enabled against a windows AD and I would rather not have to create extra domain users and exchange accounts just to get some spare email addresses for my bot accounts :slight_smile:

You can create them with any (non conflicting) email from that rake task, since they will not be authenticating against your sso.

You would most likely want to turn off the email notifications in the bot profile just so no email is ever attempted to get sent there too.

4 إعجابات

Does the bot only reply if the post begins with “@hubot”? I’d like to be able to have a complete message and then use bot commands at the bottom of the message. Something like:

I swing my giant axe and it comes down on the goblin!
@hubot roll 1d20+3

But I’m not getting a response unless I’m referencing the bot in the first word.

That’s the difference between robot.respond and robot.hear – you can use the latter to catch expressions like roll {thing}. If you don’t mind reading coffeescript, you can read my dice roller implementation here.

6 إعجابات

This is exactly what I need. Thanks for the response!

3 إعجابات

Need help installing this adapter. Do I install this on the server. As in do I ssh in, move to /var/discourse and then follow the instructions as mentioned in the github link?

Hubot can be installed completely separate from your discourse instance. You may install it on the same server as your running Discourse, but it is not necessary to do so.

All that’s needed is an API key, through which the bot communicates with the Discourse instance.

The Hubot adapter to talk to Discourse is installed alongside the Hubot instance when you’re setting it up.

4 إعجابات

I’ve got Hubot up and running like a champ – so thank you for the guidance here!

Is there a way to have the bot automatically follow all categories? Currently, we’re having to go and manually add the categories.

Any help is greatly appreciated!

3 إعجابات

Thanks for the feedback - there’s no way to currently let the bot follow all categories automatically unfortunately. It does seem like a decent candidate for a configurable option though.

I consider it a nice to have though, since it shouldn’t be too much effort to sign in as the bot and set categories (depending on the number of categories!).

إعجابَين (2)

Thank you for the response! It’s that last bit that gets us. We utilize Discourse for an enterprise that has 100+ individual activities, hundreds of managers, and thousands of users.

As the platform grows, it becomes a pain to track and update Hubot to follow. It’d be nice if there were a group option that once assigned to, the user (or bot) automatically follows all.

Again, thank you!

إعجاب واحد (1)

أحاول العثور على تفاصيل حول هذا المكون الإضافي… ولكن أجزاء متفرقة فقط…

هل هناك مكون إضافي ينشط روبوتًا شبيهًا بـ ChatGPT ولكنه مخصص لموضوع / موضوع المنتدى؟

مثل أن لدي منتدى للمصورين وأريد أن أكون قادرًا على تنشيط ChatGPT لأي شيء يحتاجونه في عالم التصوير الفوتوغرافي.

هل هذا ممكن؟

نعم، باستخدام Chatbot، يمكنك ببساطة تخصيص الموجه (prompt) الخاص بالنظام وسيتصرف الشخصية المطلوبة. كما أنه قابل للتوسيع. يمكنك تخصيصه بأدوات إضافية (إذا لزم الأمر).

إعجابَين (2)

رائع، أود تثبيت هذه الإضافة ولكن لست متأكدًا مما إذا كان بإمكاني القيام بذلك / لست مطورًا… ولكني أود جعل هذا متاحًا لمجتمعنا :confused: هل يمكنك المساعدة؟

مجتمعي https://forum.fotografos.online

إعجابَين (2)

هل تستضيفه بنفسك؟

توجد تعليمات في موضوع المكون الإضافي.

التثبيت مشابه جدًا لإضافة أي مكون إضافي:

ولكن بالطبع هناك إعدادات فريدة.

بالطبع يمكنك توظيفي لتقديم دعم أكثر تفانيًا (لا تتردد في إرسال رسالة خاصة).

4 إعجابات