From 4c595d75d41c85da705c2c2fd818dda57e2a38b2 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 16 Feb 2017 22:46:29 +1030 Subject: [PATCH] Improve documentation and trim output. --- README.md | 6 +++++- dau | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95a6bdc..48f1326 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,14 @@ You will have to quote the path on windows, or anywhere where the directory path `--username` - supply a 'username' with the webhook submission. Slightly misleading, it basically provides some extra text next to the "Bot" display on the upload to the channel. -In the example screenshot, this was set to "tardisx uploaded from EDD". +In the example screenshot at the top of this README, this was set to "tardisx uploaded from EDD". `--debug` - provide extra debugging. +## Example + +![Example output while running](http://i.imgur.com/cU7z13Y.png) + ## Limitations/bugs * Only files ending jpg, gif or png are uploaded. diff --git a/dau b/dau index 642afed..310370d 100755 --- a/dau +++ b/dau @@ -107,7 +107,7 @@ sub upload { my $size = $res->json->{attachments}->[0]->{size}; my $width = $res->json->{attachments}->[0]->{width}; my $height = $res->json->{attachments}->[0]->{height}; - info("uploaded ${width}x${height} $size bytes images to $url, submitted to webhook successfully"); + info("uploaded ${width}x${height} $size byte image to $url"); } else { debug(Dumper($tx));