Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isabelroses/blahaj
https://github.com/isabelroses/blahaj
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isabelroses/blahaj
- Owner: isabelroses
- License: mit
- Created: 2024-03-18T21:12:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T07:33:04.000Z (5 months ago)
- Last Synced: 2024-10-10T13:44:04.694Z (2 months ago)
- Language: Rust
- Size: 299 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blåhaj
Blahaj: A blazingly fast Discord bot written in Rust. 🚀🚀.
## Building
Try it using nix:
```sh
nix shell github:isabelroses/blahaj
```Or build manually:
```sh
git clone https://github.com/isabelroses/blahaj
cd blahaj
cargo build
```## Usage
Before starting the bot, create an appliction in the [Discord Developer Portal](https://discord.com/developers/applications).
In the appliction, go to the 'Bot' tab and click 'Reset Token' to get your token.
**Make sure the bot has all three intents enabled**.
To run the bot, a couple of environment variables need to be set
(These can also be set in a `.env` file):| Env Var | Optional | Description |
| ------- | -------- | ----------- |
| `$DISCORD_TOKEN` | No | The token for the Discord bot that you just created. |
| `$NIXPKGS_URL` | Yes | The url to the version of nixpkgs you want to use for the `/nixpkgs` command. |
| `$GITHUB_TOKEN` | Yes | Github API token. |## Thanks
Thanks to this [u/heatherhorns on Reddit](https://www.reddit.com/r/BLAHAJ/comments/s91n8d/some_blahaj_emojis/) for the icon.