class Fastlane::Helper::DiscordUserHelper
Public Class Methods
findUser(bot_token, client_id, user_id)
click to toggle source
# File lib/fastlane/plugin/discord_notifier/helper/discord_notifier_helper.rb, line 30 def self.findUser(bot_token, client_id, user_id) bot = Discordrb::Bot.new( token: bot_token, client_id: client_id ) user = bot.user(user_id) return user end
gravatarImageUrl(email)
click to toggle source
# File lib/fastlane/plugin/discord_notifier/helper/discord_notifier_helper.rb, line 20 def self.gravatarImageUrl(email) email_address = ENV["FASTLANE_USER"].downcase # create the md5 hash hash = Digest::MD5.hexdigest(email) # compile URL which can be used in <img src="RIGHT_HERE"... image_src = "https://www.gravatar.com/avatar/#{hash}" return image_src end