Skip to content

Commit

Permalink
fix: remove qod since it's rated limited to 5 calls a day
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Jul 17, 2023
1 parent 8b37960 commit 75e99da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/utils/aurora-dia/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface AWFConfig {
}

interface MessageType {
[key: string]: { [key: string]: string}
[key: string]: { [key: string]: string }
}
interface MessageTranslation {
[key: string]: MessageType
Expand Down Expand Up @@ -327,10 +327,13 @@ class AuroraBotSoftware {
}

loadLocaleMessages() {
const locales: Record<string, MessageType> = import.meta.glob('./messages/*.json', {eager: true})
const locales: Record<string, MessageType> = import.meta.glob(
'./messages/*.json',
{ eager: true }
)

const messages: MessageTranslation = {}
Object.keys(locales).forEach((key) => {
Object.keys(locales).forEach(key => {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
if (matched && matched.length > 1) {
const locale = matched[1]
Expand Down Expand Up @@ -388,8 +391,6 @@ class AuroraBotSoftware {
showQuote() {
if (this.config.locale === 'cn') {
this.getHitokoto()
} else {
this.getTheySaidSo()
}
}

Expand Down

0 comments on commit 75e99da

Please sign in to comment.