Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Xe/withinbot-old

Repository files navigation

withinbot

built with nix Nix Written in Rust

A chatbot for The Sub-Aesthetic Furryhole. It has a few commands and features that help with the guild. To invoke the bot, either mention it with a command by name or use its prefix ~.

This depends on Rust stable and is tested against Rust 1.40.

e621 Commands

These commands only run in NSFW channels, for obvious and sanity reasons.

get_post <e621_id>

This fetches information about a given e621 post by ID.

search <tag> [tags [tags ...]]

This performs a search for any number of tags and prints the top 3 results.

General Commands

printerfact

This grabs an amusing fact about printers.

Message Scrapers

This bot also scrapes e621 image links in NSFW chatrooms and links their correlating e621 post, if it can be found.

Building

Withinbot is built with Nix. To build it for production:

$ nix-build

To build in a dev shell you can do one of two things. You can install lorri and run:

$ lorri shell

Or just run:

$ nix-shell

Configuration

Withinbot requires the following configuration:

Environment Variable Description
DISCORD_TOKEN A Discord bot token.
MI_TOKEN A token to interface with https://mi.within.website.

Releases

No releases published

Packages

No packages published