File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import status from "./src/cmd/status.ts";
25
25
import restart from "./src/cmd/restart.ts" ;
26
26
import stop from "./src/cmd/stop.ts" ;
27
27
import echo from "./src/cmd/echo.ts" ;
28
+ import community from "./src/cmd/community.ts" ;
28
29
29
30
export async function main ( ) {
30
31
Deno . env . set (
@@ -249,6 +250,10 @@ export async function main() {
249
250
. action ( async function ( _ , service ) {
250
251
await echo ( service ) ;
251
252
} )
253
+ . command ( "community" , "Join our community Discord to chat with us" )
254
+ . action ( async function ( ) {
255
+ await community ( ) ;
256
+ } )
252
257
. globalOption ( "--check-update <checkUpdate:boolean>" , "check for update" , {
253
258
default : true ,
254
259
} )
Original file line number Diff line number Diff line change
1
+ import { open } from "../../deps.ts" ;
2
+
3
+ export default function community ( ) {
4
+ const DISCORD_INVITE = "https://discord.gg/V4U6dPskKc" ;
5
+ console . log ( DISCORD_INVITE ) ;
6
+
7
+ open ( DISCORD_INVITE ) . catch ( ( err ) => {
8
+ console . error ( err ) ;
9
+ Deno . exit ( 1 ) ;
10
+ } ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments