Skip to content

Commit

Permalink
Changes in review_media and discord utils were added (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoAravena authored Oct 8, 2024
1 parent 0a1d68e commit 5782d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/bas/bot/review_media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module Bot
# bot.execute
#
class ReviewMedia < Bot::Base
DETAIL = "low"
# read function to execute the PostgresDB Read component
#
def read
Expand Down
3 changes: 1 addition & 2 deletions lib/bas/utils/discord/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ def self.get_discord_images(message)

def self.write_media_text(params)
url_message = URI.parse("#{DISCORD_BASE_URL}/channels/#{params[:channel_id]}/messages")
message_body = { content: params[:body] }
headers = headers(params[:secret_token])
HTTParty.post(url_message, { body: message_body.to_json, headers: })
HTTParty.post(url_message, { body: params[:body].to_json, headers: })
end

def self.headers(secret_token)
Expand Down

0 comments on commit 5782d98

Please sign in to comment.