Sha256: 42d079a5111b93850c2210487abfca8fe21b5bb5056e95e36b9e7e328b722eab

Contents?: true

Size: 878 Bytes

Versions: 7

Compression:

Stored size: 878 Bytes

Contents

# frozen_string_literal: true

module Testing
  class WeatherBot < SlackRubyBot::Bot
    help do
      title 'Weather Bot'
      desc 'This bot tells you the weather.'

      command 'clouds' do
        desc 'Tells you how many clouds there\'re above you.'
      end

      command '' do
        desc 'empty description'
      end

      command 'command_without_description' do
      end

      command 'What\'s the weather in <city>?' do
        desc 'Tells you the weather in a <city>.'
        long_desc "Accurate 10 Day Weather Forecasts for thousands of places around the World.\n" \
          'We provide detailed Weather Forecasts over a 10 day period updated four times a day.'
      end
    end
  end

  class HelloCommand < SlackRubyBot::Commands::Base
    help do
      title 'hello'
      desc 'Says hello.'
      long_desc 'The long description'
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
slackrb-0.17.1 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slackrb-0.17.0 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slack-ruby-bot-0.16.1 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slack-ruby-bot-0.16.0 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slack-ruby-bot-0.15.0 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slack-ruby-bot-0.14.0 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb
slack-ruby-bot-0.13.0 lib/slack-ruby-bot/rspec/support/bots_for_tests.rb