Sha256: f9c1dc267ba91b572cf9d7495449bb75df882089ac09162c12928263e21543b8

Contents?: true

Size: 1.4 KB

Versions: 20

Compression:

Stored size: 1.4 KB

Contents

class SlackSmartBot
  def see_command_ids()
    save_stats(__method__)
    commands = get_command_ids()

    respond "*General Commands*: #{(commands[:general]+commands[:general_commands]).sort.join(' / ')}" unless commands[:general].empty?

    respond "*On Bot general*: #{commands[:on_bot_general].sort.join(' / ')}" unless commands[:on_bot_general].empty?

    respond "*On Bot on demand*: #{commands[:on_bot_on_demand].sort.join(' / ')}" unless commands[:on_bot_on_demand].empty?

    respond "*On Bot admin*: #{commands[:on_bot_admin].sort.join(' / ')}" unless commands[:on_bot_admin].empty?
    
    respond "*On Bot master admin*: #{commands[:on_bot_master_admin].sort.join(' / ')}" unless commands[:on_bot_master_admin].empty?

    respond "*On extended*: #{commands[:on_extended].sort.join(' / ')}" unless commands[:on_extended].empty?

    respond "*On Master*: #{commands[:on_master].sort.join(' / ')}" unless commands[:on_master].empty?

    respond "*On Master admin*: #{commands[:on_master_admin].sort.join(' / ')}" unless commands[:on_master_admin].empty?
    
    respond "*On Master master admin*: #{commands[:on_master_master_admin].sort.join(' / ')}" unless commands[:on_master_master_admin].empty?

    respond "*General Rules*: #{commands[:general_rules].sort.join(' / ')}" unless commands[:general_rules].empty?

    respond "*Rules*: #{commands[:rules].sort.join(' / ')}" unless commands[:rules].empty?

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
slack-smart-bot-1.15.25 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.15.1 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.15.0 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.14.2 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.14.1 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.14.0 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.13.2 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.9 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.8 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.7 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.6 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.5 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.4 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.3 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.2 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.1 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.12.0 lib/slack/smart-bot/commands/general/see_command_ids.rb
slack-smart-bot-1.11.0 lib/slack/smart-bot/commands/general/see_command_ids.rb