Skip to content

Commit

Permalink
random pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Apr 23, 2024
1 parent dd5e8d6 commit e99435f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin.Darwin/rpoke
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

curl --silent https://raw.githubusercontent.com/nerdydrew/Random-Pokemon-Generator/master/dex/all.json \
| jq -r --arg i $((RANDOM % 898)) '.[$i|tonumber].name'
curl --silent https://raw.githubusercontent.com/nerdydrew/Random-Pokemon-Generator/main/public/dex/all.json \
| jq -r --arg i $((RANDOM % 898)) '.[$i|tonumber].name'

0 comments on commit e99435f

Please sign in to comment.