18 lines
443 B
Ruby
18 lines
443 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class StreamDiscordReply < ::Jobs::Base
|
|
sidekiq_options retry: false
|
|
|
|
def execute(args)
|
|
interaction = args[:interaction]
|
|
|
|
if SiteSetting.ai_discord_search_mode == "persona"
|
|
DiscourseAi::Discord::Bot::PersonaReplier.new(interaction).handle_interaction!
|
|
else
|
|
DiscourseAi::Discord::Bot::Search.new(interaction).handle_interaction!
|
|
end
|
|
end
|
|
end
|
|
end
|