discord-notify

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 7 Imported by: 0

README

discord-notify

Send notifications to yourself

Usage

Download:

VERSION=0.0.3
OS=linux
ARCH=amd64
curl -OL "https://github.com/bozdoz/discord-notify/releases/download/v${VERSION}/discord-notify-v${VERSION}-${OS}-${ARCH}.tar.gz"

Install:

tar -xvf discord-notify.tar.gz

Setup:

Setup environment variables for NOTIFY_TOKEN and NOTIFY_USER somehow. Maybe with a .env file, adjacent to your binary.

NOTIFY_TOKEN=ASDF.asdf.asdf
NOTIFY_USER=9879879877987

Use:

echo "Hello" | discord-notify
ls | discord-notify
echo "const elephant: number = 123; // but really is it?"  | discord-notify --code=ts

For permissions:

  1. Allow Message Content Intent in discord developers, under Bot: https://discord.com/developers/applications/
  2. Visit a similar link, to add your bot to a server: # https://discord.com/api/oauth2/authorize?client_id=[YOUR_CLIENT_ID]&permissions=2112&scope=bot

How to get your USER ID?

  • Click your avatar in Discord and press "Copy User Id"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL