diff options
author | Volpeon <git@volpeon.ink> | 2021-10-17 20:12:47 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-17 20:12:47 +0200 |
commit | 8544feb5d47df2399d07f69c56bb226ce923849a (patch) | |
tree | c54878cf4c454b1212d27f48da34e02e5f286b1e /src/api/e621/index.ts | |
parent | Support multiple e621 queries, post as unlisted (diff) | |
download | feralbot-8544feb5d47df2399d07f69c56bb226ce923849a.tar.gz feralbot-8544feb5d47df2399d07f69c56bb226ce923849a.tar.bz2 feralbot-8544feb5d47df2399d07f69c56bb226ce923849a.zip |
Added query to exclude dragons
Diffstat (limited to 'src/api/e621/index.ts')
-rw-r--r-- | src/api/e621/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/e621/index.ts b/src/api/e621/index.ts index 4748e87..c8e0f44 100644 --- a/src/api/e621/index.ts +++ b/src/api/e621/index.ts | |||
@@ -48,5 +48,5 @@ export async function randomPost() { | |||
48 | const postIndex = Math.floor(Math.random() * response.posts.length); | 48 | const postIndex = Math.floor(Math.random() * response.posts.length); |
49 | const post = response.posts[postIndex]; | 49 | const post = response.posts[postIndex]; |
50 | 50 | ||
51 | return post; | 51 | return { queryIndex, post }; |
52 | } | 52 | } |