A little command-line script written in Rust to interface with Discord webhooks.

Overview

Rust Discord Webhook Agent

This is a little "script" I wrote for practice with Rust and asynchronous operations within Rust.

Getting started

Clone this GitHub repository, then cd into the project and compile it (unlike other languages, cargo automatically installs dependencies on build/run).

git clone https://github.com/TheEgghead27/discord-webhook-rs.git
cd discord-webhook-rs
cargo build --release

Configuration

The program expects a webhooks.tsv file at your XDG_CONFIG_HOME (normally ~/.config), with a format as follows:

WEBHOOK_URL	NAME(optional)	PREFIX(optional)

Note the use of \t tab-separated values instead of whitespaces.

If you are only specifying WEBHOOK_URL, you do not have to include a tab.

Invokation

Simply type the built executable's filename, optionally followed by a list of files you wish to attach to your webhook message.

./target/release/discord-webhook-rs [FILENAMES]

If you prefer, you can move the discord-webhook-rs binary executable to another location/name and execute it there.

You might also like...
A Discord bot for sending GeoGuessr challenge links that uses the GeoGuessr API written in rust.

GeoGuessr-bot-rs This is a simple implementation of a discord bot that send GeoGuessr-challenge links on demand. Features: Slash-commands Lightning-fa

This is a Discord bot written in Rust to translate to and from the Bottom Encoding Standard using bottom-rs and Serenity.
This is a Discord bot written in Rust to translate to and from the Bottom Encoding Standard using bottom-rs and Serenity.

bottom-bot This is a Discord bot written in Rust to translate to and from the Bottom Encoding Standard using bottom-rs and Serenity. Ever had this pro

A multipurpose (including music) Discord bot written in Rust

filloabot-rs A multipurpose (including music) Discord bot. This is a full rewrite using Rust of the original FilloaBot. Some features that were consid

A blazingly fast 🔥 Discord bot written in Rust

rusty-bot 🦀 A blazingly fast 🔥 Discord bot written in Rust. Commands name use !rm count deletes old messages !meme subreddit sends a random meme

A Discord bot, written in Rust, that generates responses using the LLaMA language model.
A Discord bot, written in Rust, that generates responses using the LLaMA language model.

llamacord A Discord bot, written in Rust, that generates responses using the LLaMA language model. Built on top of llama-rs. Setup Model Obtain the LL

A Discord bot, written in Rust, that generates responses using the LLaMA language model.
A Discord bot, written in Rust, that generates responses using the LLaMA language model.

llamacord A Discord bot, written in Rust, that generates responses using the LLaMA language model. Built on top of llama-rs. Setup Model Obtain the LL

Powerfull Discord Raid Bot written in Rust, use VPN / Proxy because creating 200 channels in 10s Will ratelimit you.

Harakiri-Rust This the first Discord Raid Bot made in RustLang I recommend you use with a VPN or a Proxy to evade Discord Ratelimit. If bot doesn't st

🦜 A hassle-free, highly performant, host it yourself Discord music bot built with Serenity in Rust. Powered by youtube-dl and Genius.

🦜 A hassle-free, highly performant and fast evolving Discord music bot built with Serenity in Rust. Deployment Usage Just create a bot account, copy

A discord bot that safely executes whatever rust you throw at it. Remote code execution as a service
A discord bot that safely executes whatever rust you throw at it. Remote code execution as a service

RustBot Bot is still under development and not ready for production use RustBot is a discord bot that executes whatever rust code you throw at it. In

Comments
  • Special characters are not escaped for JSON compatibility

    Special characters are not escaped for JSON compatibility

    When inputting newlines (and likely other special characters) in a message body, the JSON formatting code currently creates malformed JSON, which is rejected by Discord.

    The solution is to escape potentially problematic characters when formatting JSONs (perhaps there's a library for that).

    opened by TheEgghead27 1
Owner
David Chen
egg
David Chen
A rust(serenity) based discord bot for the hacksquad discord server

A Discord Bot for Hacksquad How to Deploy? Requirements Docker Docker Compose Steps To Run Copy the docker-compose.yml and .env.example files to your

HackSquad 5 Jan 4, 2023
A Discord bot focused on addressing the inherent problems with Discord, to allow a more socialist/anarchist organization of servers.

ACABot A Discord bot focused on addressing the inherent problems with Discord, to allow a more socialist/anarchist organization of servers (or "guilds

null 4 May 3, 2022
cqlsh-rs is a command-line interface for interacting with Cassandra using CQL

cqlsh-rs is a command-line interface for interacting with Cassandra using CQL (the Cassandra Query Language). Originally shipped with every Cassandra package and implemented in Python 2, this tool is reimplemented in Rust.

28Smiles 1 Feb 10, 2022
A little bit fast and modern Ruby version manager written in Rust

A little bit fast and modern Ruby version manager written in Rust Features Pure Rust implementation not using ruby-build Cross-platform support (macOS

Takayuki Maeda 510 Jan 5, 2023
Click-once - A small tiny little binary to fix undesired mouse double clicks in Windows, written in Rust.

click-once A small tiny little binary to fix malfunctioning mouse double clicks in Windows, written in Rust. Minimal executable with little to no over

null 23 Dec 29, 2022
A webhook-based Discord slash command library

Slashook A webhook-based Discord slash command library. This is a WIP project. Please note breaking changes can occur within minor releases until vers

Tonkku 11 Oct 18, 2022
A little tribute to the Dango Daikazoku from Clannad (by Key, KyoAni, et al)

dango A little tribute to the Dango Daikazoku from Clannad (by Key, KyoAni, et al) Try it with your friends at http://ernestwong.nz/dango-tribute/serv

Ernest Wong 19 Nov 21, 2022
little brother of gnu-copypasta-maker To compile, use make.

UWU Maker little brother of gnu-copypasta-maker To compile, use make. To install, use sudo make install or if you are root make install To uninstall,

Ahmet Efe AKYAZI 1 Jan 12, 2022
Quick templates script for codeforces contests.

Codeforces Template Tool I created this tool to help me quickly set up codeforces contests/singular problems with templates. Tested for windows, shoul

null 1 Jun 2, 2022
Submit sbatch jobs without the need to create a script

ssubmit Submit sbatch jobs without having to create a submission script Motivation Install Usage Motivation This project is motivated by the fact that

Michael Hall 44 Nov 23, 2022