1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
export interface DiscordCommand {
name: string;
description: string;
options?: DiscordCommandOption[];
}
export interface DiscordCommandOption {
type: number;
name: string;
description: string;
required?: boolean;
choices?: DiscordCommandChoice[];
}
export interface DiscordCommandChoice {
name: string;
value: string;
}
export type TimePeriod = 'hour' | 'day' | 'week' | 'month' | 'year' | 'all';
export const HOT_COMMAND: DiscordCommand = {
name: 'hot',
description: 'Fetch a random hot post from r/okbuddyumamusume',
};
export const ROLEPLAY_COMMAND: DiscordCommand = {
name: 'roleplay',
description: 'Fetch a random hot roleplay post from r/okbuddyumamusume',
};
export const NSFW_COMMAND: DiscordCommand = {
name: 'nsfw',
description:
'Fetch a random NSFW post from r/okbuddyumamusume (NSFW channels only)',
};
export const TOP_COMMAND: DiscordCommand = {
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',
},
],
},
],
};
|