Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-04-16 01:25:42 +00:00
parent 8074fe51bd
commit fb9f723f1c
4 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -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);