Sha256: 47cd50f64e4521cbd9fa363438235358d33649727bd39ce3a412098da52aea97
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
module SlackRubyBotServer module Stripe module Commands class Subscription < SlackRubyBot::Commands::Base command 'subscription' do |client, data, _match| team = ::Team.find(client.owner.id) include_admin_info = (data.user == team.activated_user_id) client.say(channel: data.channel, text: team.subscription_text(include_admin_info: include_admin_info)) logger.info "SUBSCRIPTION: #{client.owner} - #{data.user}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-bot-server-stripe-0.1.0 | lib/slack-ruby-bot-server-stripe/commands/subscription.rb |