Sha256: 9580674eb29958b813c7934e522281b75ab794ee8251140ddb0582079fea56af
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
Slappy.configure do |config| ## Slappy Settings # # token: # Slack API Token # # config.token = ENV['SLACK_TOKEN'] # scripts_path_dir: # Slappy scripts directory. # Slappy load scripts in this directory. # # config.scripts_dir_path = 'slappy-scripts' # logger: # Use logger object. # # config.logger = Logger.new(STDOUT) # logger.level: # Specify logger level. # # config.logger.level = Logger::INFO # dsl: # use dsl # # param: :enabled or :disabled # # config.dsl = :enabled # stop_with_error: # Select bot be stop when catch StandardError. # If false, puts stack trace but be not stop when bot catch StandardError. # # config.stop_with_exception = true ## Default parameters # # There parameters use in say method when send to Slack. # Settings specified here will take precedence over those in method option # And other parameters give to method option if you want. # # Official API document: # https://api.slack.com/methods/chat.postMessage # username: # Name of bot. # # config.robot.username = 'slappy' # channel: # Channel, private group, or IM channel to send message to. # Can be an encoded ID, or a name. See below for more details. # # config.robot.channel = nil # icon_emoji: # emoji to use as the icon for this message. Overrides icon_url. # # config.robot.icon_emoji = nil # icon_url: # URL to an image to use as the icon for this message # # config.robot.icon_url = nil end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slappy-0.6.2 | templates/slappy_config.rb |
slappy-0.6.1 | templates/slappy_config.rb |