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