https://github.com/mokshit06/domainbot-rs
https://github.com/mokshit06/domainbot-rs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mokshit06/domainbot-rs
- Owner: Mokshit06
- Created: 2022-04-01T18:44:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-02T12:43:12.000Z (about 3 years ago)
- Last Synced: 2025-01-29T17:11:24.002Z (4 months ago)
- Language: Rust
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# domainbot-rs
A bot that lets you check domain availability while brainstorming names for an organization or event on Discord.
Rust rewrite of https://github.com/someshkar/domainbot
## Usage
This bot isn't public as of now, but to run it on yourself, you can follow these steps:
- copy `.env.example` to `.env` and add the discord token
- install rust-bindgen
```bash
cargo install bindgen
```
- execute `bindgen.sh`, which builds the `whoisparser` as static binary and generates rust bindings.
```bash
chmod +x bindgen.sh
./bindgen.sh
```
- run the bot
```rust
cargo run
```## Working
I couldn't find any whois output parser for rust or C(++). Most were written in scripting languages like ruby/python. The one with the least perf overhead seems to be https://github.com/likexian/whois-parser. domainbot-rs interops with this library with cgo and rust's ffi.