{"id":22051825,"url":"https://github.com/3jackdaws/dhook","last_synced_at":"2026-05-18T06:15:25.069Z","repository":{"id":114061731,"uuid":"89725789","full_name":"3jackdaws/dhook","owner":"3jackdaws","description":"CLI Discord Webhook Executor","archived":false,"fork":false,"pushed_at":"2017-04-28T20:21:48.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T21:35:11.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3jackdaws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-28T16:43:54.000Z","updated_at":"2020-08-03T19:19:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"30d85c7c-3265-4db7-99d7-55b81b4320c8","html_url":"https://github.com/3jackdaws/dhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fdhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fdhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fdhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fdhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3jackdaws","download_url":"https://codeload.github.com/3jackdaws/dhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245121894,"owners_count":20564205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T15:11:27.112Z","updated_at":"2026-05-18T06:15:20.044Z","avatar_url":"https://github.com/3jackdaws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dhook - CLI Discord Webhook Executor\nThis is a command line python3 script that allows for the execution of Discord webhooks.  Webhooks are a low effort way to post content to a channel in a discord server.  Webhooks must be set up per channel.  \n\n# Requirements\n* Python3\n* A Valid Webhook URL\n\n# Usage\n`dhook -i \u003cwebhook id\u003e -t \u003cwebhook token\u003e [-n \u003cname\u003e] [-a \u003cavatar url\u003e] \u003cmessage content\u003e`\n\nDiscord webhook urls take this form:\n`https://discordapp.com/api/webhooks/\u003cwebhook id\u003e/\u003cwebhook token\u003e`\n\n# Recommendations\nIt's often a good idea to create abash script that contains relevant webhook information, so that it doesn't have to be passed to the dhook script manually every time.\n\n## Example Script\nThis is an example script that would be used for notifications.  It's signature would be: `./notify.sh \"My message content\"`\n```bash\n#!/bin/bash\n# notify.sh\nHOOK_ID=12345678901234324\nHOOK_TOKEN=HGSDHDFGHDFGH$%$^WEGXBVG$^^GH_)HMKCBDFG\nHOOK_NAME='Alert Bot'\nHOOK_AVATAR='http://pictures.com/picture'\nMENTION='\u003c@483094830948403948\u003e'\n\ndhook -i$HOOK_ID -t$HOOK_TOKEN -n\"$HOOK_NAME\" -a\"$HOOK_AVATAR\" \"Alert for $MENTION: $1\"\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3jackdaws%2Fdhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3jackdaws%2Fdhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3jackdaws%2Fdhook/lists"}