Open dblock opened 6 years ago
For now manual, getting the user that installed the bot.
Team.active.each do |team| next unless team.activated_user_id client = Slack::Web::Client.new(token: team.token) info = client.users_info(user: team.activated_user_id) next unless info.user && info.user.profile puts "#{info.user.profile.display_name} <#{info.user.profile.email}>" end; nil
For now manual, getting the user that installed the bot.