You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use your gem in rails and faced these problems.
When I do not include require 'cleverbot'
NameError (uninitialized constant MessengerController::Cleverbot)
then I just added require 'cleverbot' to controller and again I got problem
When I include require 'cleverbot'
Cleverbot::Errors::DuplicatedReferenceNamesError (Reference name already exists.):
Please help.
The text was updated successfully, but these errors were encountered:
classMessengerController < Messenger::MessengerControllerdefwebhookfriend=Cleverbot.new('user','key','Pradeep Sapkota')iffb_params.first_entry.callback.message?text=Messenger::Elements::Text.new(text: friend.say("I'm Under heavy development. Please meet me later. Thank you for your patience").to_s)request=Messenger::Request.new(text,fb_params.first_entry.sender_id)response=Messenger::Client.send(request)putsresponseendrendernothing: true,status: 200endend
@dtesler I still don't really understand the whole reference nick thing. Can you help out here? Otherwise I'm just going to recommend not setting the reference nick because it doesn't make a lot of sense.
I wanted to use your gem in rails and faced these problems.
When I do not include require 'cleverbot'
then I just added require 'cleverbot' to controller and again I got problem
When I include require 'cleverbot'
Please help.
The text was updated successfully, but these errors were encountered: