Skip to content

daisyUniverse/discho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discho

Pronounced Dis - Ko Discord Echo

What it does: Allows you to pipe input from bash and have it output to a discord channel, and upload local files / scripts

Usage:

echo "FOO" | discho

1566829260321

scrot ~/scrot.png && echo "My Desktop!" | discho -u ~/scrot.png

1566829320839

echo "my config" | discho -cb ~/.keebie/default.json

1566829427880

uname  -r | discho -c general

1566829473079

Installation

Prerequisites: Node.JS, jq, bash

Copy all files to ~/.discho, then run

./discho install 

Now, you can run

discho -t whateveryourbottokenis 

to set your bot token

from discho -h...

Discho by Robin Universe
discho -c <channel-name> to send to a specific channel. defaults to 'general', and stays on the last one you sent to
discho -t <TOKEN> sets bot token for the bot
discho -u <FILEPATH> will upload this file as an attachement. Append -c <channel-name> to specify a channel, otherwise it will send to the last used
discho -cb <FILEPATH> will upload this file as an attatchement, and attempt to post its content as a code block using its file extension as the syntax
discho -dm <USER ID> sends a DM to a user
discho -h shows this
discho install: installs this script to /usr/bin/ for systemwide use

About

Pipe bash to Discord!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published