about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--taucheck.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/taucheck.rb b/taucheck.rb index 6033f56..0fcd74e 100644 --- a/taucheck.rb +++ b/taucheck.rb
@@ -40,11 +40,12 @@ class Checker
40 end 40 end
41 41
42 def handle_post(post) 42 def handle_post(post)
43 puts post["post_url"] 43 body = post["summary"] + "\n" + post["post_url"]
44 @discord.send_message(@channel_id, post["post_url"]) 44 puts body
45 @discord.send_message(@channel_id, body)
45 end 46 end
46end 47end
47 48
48config = YAML.load_file("config.yml") 49config = YAML.load_file(ARGV[0] || "config.yml")
49checker = Checker.new(config) 50checker = Checker.new(config)
50checker.run 51checker.run