File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ await load({ export: true });
2525
2626const HTTP_ONLY = ( Deno . env . get ( "HTTP_ONLY" ) ?? "" ) . toLowerCase ( ) === "1" ||
2727 ( Deno . env . get ( "HTTP_ONLY" ) ?? "" ) . toLowerCase ( ) === "true" ;
28- const ENABLE_SCHEDULES = ( Deno . env . get ( "ENABLE_SCHEDULES" ) ?? "" ) . toLowerCase ( ) === "1" ||
28+ const ENABLE_SCHEDULES =
29+ ( Deno . env . get ( "ENABLE_SCHEDULES" ) ?? "" ) . toLowerCase ( ) === "1" ||
2930 ( Deno . env . get ( "ENABLE_SCHEDULES" ) ?? "" ) . toLowerCase ( ) === "true" ;
3031
3132const appToken = Deno . env . get ( "SLACK_APP_TOKEN" ) ;
@@ -157,12 +158,16 @@ if (!HTTP_ONLY) {
157158 case "join" : {
158159 if ( args [ 1 ] === "every" ) {
159160 if ( ENABLE_SCHEDULES ) {
160- await application . joinSchedule ( { weekday : args [ 2 ] , user, channel } ) ;
161+ await application . joinSchedule ( {
162+ weekday : args [ 2 ] ,
163+ user,
164+ channel,
165+ } ) ;
161166 } else {
162167 await webClient . chat . postEphemeral ( {
163168 user : body . user_id ,
164169 channel,
165- text : "Don't be a :sloth: and join the session at 9 AM!" ,
170+ text : "Stop being a :sloth: and join the session at 9 AM!" ,
166171 } ) ;
167172 }
168173 break ;
You can’t perform that action at this time.
0 commit comments