lib/cosgrove/config.rb in cosgrove-0.0.1rc14 vs lib/cosgrove/config.rb in cosgrove-0.0.1rc15

- old
+ new

@@ -26,18 +26,26 @@ def steem_api_url chain[:steem_api_url] end + def steem_api_failover_urls + chain[:steem_api_failover_urls] + end + def golos_api_url chain[:golos_api_url] end - def test_api_url - chain[:test_api_url] + def golos_api_failover_urls + chain[:golos_api_failover_urls] end + def test_api_failover_urls + chain[:test_api_failover_urls] + end + def steem_account chain[:steem_account] end def steem_posting_wif @@ -65,9 +73,15 @@ def discord_log_mode return :debug if !!ENV['HELL_ENABLED'] return :info unless !!yml[:discord][:log_mode] yml[:discord][:log_mode].to_sym + end + + def discord_fancy_log + return false if !!ENV['HELL_ENABLED'] + + yml[:discord][:fancy_log].to_s == 'true' end def channel_upvote_weight(channel_id) rules = yml[:cosgrove][:upvote_rules][:channels] default_weight = rules[:default][:upvote_weight] rescue '0.00 %'