mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
Fix
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = class WordOfTheDayCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const word = await this.fetchWordOfTheDay();
|
const word = await this.fetchWordOfTheDay();
|
||||||
let data;
|
let data;
|
||||||
if (this.cache.word === word) {
|
if (this.cache?.word === word) {
|
||||||
data = this.cache.data;
|
data = this.cache.data;
|
||||||
} else {
|
} else {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
|
|||||||
Reference in New Issue
Block a user