Remove getTime model function
it lead to higher usage of tokens.
This commit is contained in:
parent
722862ded3
commit
02a5b0f7b9
2 changed files with 1 additions and 28 deletions
|
@ -8,7 +8,6 @@ import IQuota from "./IQuota";
|
|||
import MessageCount from "./quota/messageCount";
|
||||
|
||||
export interface IConfigRequired {
|
||||
readonly calendarParams: Intl.DateTimeFormatOptions;
|
||||
/** Tokens to authentiate with */
|
||||
readonly tokens: {
|
||||
readonly Discord: string;
|
||||
|
@ -52,15 +51,6 @@ function envAsNumber(key: string): number | undefined {
|
|||
}
|
||||
|
||||
const defaultConfig: IConfigRequired = {
|
||||
calendarParams: {
|
||||
weekday: "short",
|
||||
year: "numeric",
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
hour12: false,
|
||||
},
|
||||
tokens: {
|
||||
Discord: envAsString("TOKENS__DISCORD") ?? "",
|
||||
OpenAI: envAsString("TOKENS__OPENAI") ?? "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue