Discord bot that displays FFXIV listings. Goal is to display information to make the party finder experience better (as in, having pfs fill more quickly).
You can make a clone by following the below instructions.
It scrapes https://xivpf.com/listings for current listings. xivpf gets its data from people who have the Remote Party Finder plugin on Dalamud.
- Create a discord application, and within that application a discord bot. Note the bot api token. Enable message content intent on the "bot" page of the discord developer portal. Create the bot invite link and invite the bot to your discord server, with the send messages and application commands permissions.
- Install rust.
- Add the emojis to a server that this bot is in. Edit xiv_util.rs line 110 with the emoji codes (can be found by sending the message <the emoji i.e. :dps:> in a discord channel with the emoji).
- Run these commands:
git clone git@github.com:epitaque/trappingway.git
cd trappingway
cargo install sqlx-cli
IF ON WINDOWS POWERSHELL
$env:DISCORD_TOKEN="<your discord api token>"
$env:DATABASE_URL="sqlite:database.sqlite"
$env:MAX_LISTINGS_IN_POST=8
IF ON LINUX
DISCORD_TOKEN=<your discord api token>
DATABASE_URL=sqlite:database.sqlite
MAX_LISTINGS_IN_POST=8
sqlx database create
sqlx migrate run
cargo install
cargo build --release
./target/release/ffxiv_pf_bot<.exe if on windows>
- In your discord server, type @(your bot name) register. Click one of the green buttons. This is to register the slash command,
display_xivpfs. - Type /display_xivpfs and some command parameters should autocomplete for you.
- Please consider not changing the update interval, as the owner of xivpf.com probably doesn't want a bunch of bots scraping on a frequent interval. They told me 5 minutes was an acceptable interval.
Looks like Veraticus made a discord bot that does a similar thing in Go. Link.
