You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnawaitinteraction.reply('No bike found with that name.');
20
+
}
21
+
constmiles=Math.round(bike.lastWaxedDistance*0.000621371);// equivilant meters to miles
22
+
constbikeInfo=`Bike information:\nName: ${bike.name}\nBrand: ${bike.brand}\nModel: ${bike.model}.\nCurrent Mileage: ${Math.round(bike.distance*0.000621371)}\nThis chain was last waxed on ${bike.lastWaxedDate} at ${miles} miles.`;
23
+
24
+
returnawaitinteraction.reply(bikeInfo);
25
+
}catch(error){
26
+
console.error('Error fetching bike:',error);
27
+
returnawaitinteraction.reply('There was an error fetching your bike.');
0 commit comments