Skip to content

A program to post a random XKCD image to either Mattermost or Slack

License

Notifications You must be signed in to change notification settings

dhach/xkcd-image-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xkcd-image-bot

Build status: Go

A program to post a random XKCD image to Slack or Slack-compatible webhooks (currently tested and verified: Mattermost, Discord).

Written for personal use and for learing Go.

Usage

Usage:

  -help
    	print this help and exit
  -message string
    	(optional) an additional message to post before the image
  -webhook string
    	the URL of the webhook to post the image to

Example Usages

./xkcd-image-bot -webhook-url https://my.private-mattermost.xyz/hooks/{webhook-id}
./xkcd-image-bot -webhook-url https://my.private-mattermost.xyz/hooks/{webhook-id} -message "good morning!"
./xkcd-image-bot -webhook-url https://hooks.slack.com/services/{webhook-id}
./xkcd-image-bot -webhook-url https://discord.com/api/webhooks/{webhook.id}/{webhook.token}/slack -message "hello, world!"

Issues

If you find any bugs, please report them via Github.

License

GPL-3.0

About

A program to post a random XKCD image to either Mattermost or Slack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages