-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
51 lines (46 loc) · 1.41 KB
/
types.ts
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
export interface ConfigType {
DISCORD_TOKEN: string;
commandPrefix: string;
reportServers: { [serverId: string]: string }; // { server1Id: reportChannel1Id, server2Id: reportChannel2-1Id, server2Id: reportChannel2-2Id }
standupServers: { [serverId: string]: string }; // { server1Id: standupChannel1Id, server2Id: standupChannel2-1Id, server2Id: standupChannel2-2Id }
developerUserId: string;
firstMeetingDay: string; // YYYY-MM-DD
// UTC
meetingTime: {
hour: number;
minute: number;
};
}
export enum exitTypes {
"exit" = "exit",
"SIGINT" = "SIGINT",
"SIGUSR1" = "SIGUSR1",
"SIGUSR2" = "SIGUSR2",
"SIGTERM" = "SIGTERM"
}
export enum userChatStatuses {
"YESTERDAY" = "yesterday", // User is telling what they did yesterday.
"TODAY" = "today", // User is telling what they have planned to do.
"BLOCKS" = "blocks" // User is telling what might block them on their work today.
}
export enum dmCommands {
"start" = "start",
"next" = "next",
"end" = "end",
"delete" = "delete",
"cancel" = "cancel",
"notes" = "notes"
}
export enum notesCommands {
"help" = "help",
"add" = "add",
"new" = "new", // alias for add
"write" = "write", // alias for add
"get" = "get",
"list" = "list", // alias for get
"delete" = "delete",
"remove" = "remove" // alias for delete
}
export interface OngoingChats {
[userId: string]: { currentStatus: userChatStatuses; yesterday: string[]; today: string[]; blocks: string[] };
}