@@ -6,7 +6,7 @@ import weather from 'weather-js';
66
77const findWeather = (
88 location : string ,
9- unit : 'C' | 'F'
9+ unit : 'C' | 'F' ,
1010) : Promise < weather . Weather > => {
1111 return new Promise ( ( resolve , reject ) => {
1212 weather . find ( { search : location , degreeType : unit } , ( err , result ) => {
@@ -83,15 +83,15 @@ export const chatInput: ChatInputCommand = async (ctx) => {
8383 name : 'Wind Speed' ,
8484 value : weatherData . current . windspeed ,
8585 inline : true ,
86- }
86+ } ,
8787 ) ;
8888
8989 // Add forecast information
9090 const forecast = weatherData . forecast
9191 . slice ( 0 , 3 )
9292 . map (
9393 ( day ) =>
94- `${ day . shortday } : ${ day . skytextday } (${ day . low } °${ unit } - ${ day . high } °${ unit } )`
94+ `${ day . shortday } : ${ day . skytextday } (${ day . low } °${ unit } - ${ day . high } °${ unit } )` ,
9595 )
9696 . join ( '\n' ) ;
9797
@@ -109,7 +109,7 @@ export const chatInput: ChatInputCommand = async (ctx) => {
109109 await ctx . interaction . editReply ( { embeds : [ embed ] } ) ;
110110 } catch ( error ) {
111111 await ctx . interaction . editReply (
112- 'Could not find weather information for that location.'
112+ 'Could not find weather information for that location.' ,
113113 ) ;
114114 }
115115} ;
@@ -141,15 +141,15 @@ export const ai: AiCommand<typeof aiConfig> = async (ctx) => {
141141 name : 'Wind Speed' ,
142142 value : weatherData . current . windspeed ,
143143 inline : true ,
144- }
144+ } ,
145145 ) ;
146146
147147 // Add forecast information
148148 const forecast = weatherData . forecast
149149 . slice ( 0 , 3 )
150150 . map (
151151 ( day ) =>
152- `${ day . shortday } : ${ day . skytextday } (${ day . low } °${ unit } - ${ day . high } °${ unit } )`
152+ `${ day . shortday } : ${ day . skytextday } (${ day . low } °${ unit } - ${ day . high } °${ unit } )` ,
153153 )
154154 . join ( '\n' ) ;
155155
0 commit comments