Skip to content

Commit 09d23a0

Browse files
committed
only try to run gserv on servers with a ssh config
1 parent 15c6968 commit 09d23a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • app/services/discord/modules/commands/developer

app/services/discord/modules/commands/developer/Gserv.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export const SlashGservCommand: SlashCommand = {
6161
const messageID = reply.interaction.responseMessageId ?? (await ctx.fetchReply()).id;
6262

6363
await Promise.all(
64-
servers.map(async gameServer => {
64+
servers.filter(s => !!s.config.ssh)
65+
.map(async gameServer => {
6566
const gSDiscord = gameServer.discord;
6667
const channel = gSDiscord.channels.cache.get(
6768
ctx.channelId

0 commit comments

Comments
 (0)