Skip to content

humanode-network/discord-users-list

Repository files navigation

discord-users-list

A sample app that loads the list of members from a Discord server and their roles.

Useful for integration with BotBasher.

Requirements

  • Rust
  • Bash-like shell (optional, for passing the env vars, you can use other methods as well)

Usage

  1. Clone repo.

  2. Write settings.

    cat <<'EOF' > .env
    export RUST_LOG="info,list_members=debug"
    export DISCORD_TOKEN="<token>"
    export DISCORD_SERVER_ID="<server id>"
    export OUTPUT="users.jsonlines"
    EOF
  3. Load settings into current shell.

    source .env
  4. Run the app.

    cargo run --bin list-members
  5. Inspect the users list and the execution log.

    Please report issues you encounter with this sample app!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published