diff options
| author | Fuwn <[email protected]> | 2025-09-07 01:55:42 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-07 01:55:42 -0700 |
| commit | c896ab4607654a8b3ea3192919ee10dd7d62286f (patch) | |
| tree | d9698ed6f35d17842e02262d1fe9b81826893cba /src/commands.js | |
| parent | chore: Fix package description (diff) | |
| download | umabotdiscord-c896ab4607654a8b3ea3192919ee10dd7d62286f.tar.xz umabotdiscord-c896ab4607654a8b3ea3192919ee10dd7d62286f.zip | |
feat: Add top command
Diffstat (limited to 'src/commands.js')
| -rw-r--r-- | src/commands.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/commands.js b/src/commands.js index 4680ff7..c2faac5 100644 --- a/src/commands.js +++ b/src/commands.js @@ -13,3 +13,43 @@ export const NSFW_COMMAND = { description: 'Fetch a random NSFW post from r/okbuddyumamusume (NSFW channels only)', }; + +export const TOP_COMMAND = { + name: 'top', + description: + 'Fetch a random top post from r/okbuddyumamusume (defaults to today)', + options: [ + { + type: 3, + name: 'time', + description: 'Time period for top posts (defaults to today)', + required: false, + choices: [ + { + name: 'Now', + value: 'hour', + }, + { + name: 'Today', + value: 'day', + }, + { + name: 'This Week', + value: 'week', + }, + { + name: 'This Month', + value: 'month', + }, + { + name: 'This Year', + value: 'year', + }, + { + name: 'All Time', + value: 'all', + }, + ], + }, + ], +}; |