Improve documentation and trim output.

This commit is contained in:
Justin Hawkins 2017-02-16 22:46:29 +10:30
parent 8c71993886
commit 4c595d75d4
2 changed files with 6 additions and 2 deletions

View File

@ -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. `--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. `--debug` - provide extra debugging.
## Example
![Example output while running](http://i.imgur.com/cU7z13Y.png)
## Limitations/bugs ## Limitations/bugs
* Only files ending jpg, gif or png are uploaded. * Only files ending jpg, gif or png are uploaded.

2
dau
View File

@ -107,7 +107,7 @@ sub upload {
my $size = $res->json->{attachments}->[0]->{size}; my $size = $res->json->{attachments}->[0]->{size};
my $width = $res->json->{attachments}->[0]->{width}; my $width = $res->json->{attachments}->[0]->{width};
my $height = $res->json->{attachments}->[0]->{height}; 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 { else {
debug(Dumper($tx)); debug(Dumper($tx));