mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Bug Fixes
This commit is contained in:
@@ -23,8 +23,7 @@ module.exports = class TodayCommand extends Command {
|
||||
}
|
||||
try {
|
||||
const response = await snekfetch
|
||||
.get('http://history.muffinlabs.com/date')
|
||||
.buffer();
|
||||
.get('http://history.muffinlabs.com/date');
|
||||
const parsedResponse = JSON.parse(response.text);
|
||||
const events = parsedResponse.data.Events;
|
||||
const randomNumber = Math.floor(Math.random() * events.length);
|
||||
|
||||
Reference in New Issue
Block a user