Skip to content

Commit

Permalink
configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Izocel committed Oct 27, 2024
1 parent 90bdbbf commit d418e00
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 46 deletions.
9 changes: 8 additions & 1 deletion .envExample
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ botToken=#######################################################
sentryDsn=#######################################################
OPENAI_API_KEY=###########################################
DB_CONN_STRING=##############
DB_NAME=############
DB_NAME=############

CS2_PORT_STILL_NO_CAKE=27015
CS2_TV_PORT_STILL_NO_CAKE=27016
CS2_RCON_PORT_STILL_NO_CAKE=27017
CS2_IP_STILL_NO_CAKE=##############
CS2_TV_PASS_STILL_NO_CAKE=##############
CS2_RCON_PASS_STILL_NO_CAKE=##############
4 changes: 2 additions & 2 deletions environments.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ declare global {
botToken: string;
guildIds: string;
inviteUrl: string;
RCON_PASS_192_168_1_128_27015:string;
RCON_PASS_192_168_1_128_27016:string;
CS2_RCON_PASS_192_168_1_128_27015:string;
CS2_RCON_PASS_192_168_1_128_27016:string;
DB_CONN_STRING:string,
DB_NAME:string,
}
Expand Down
6 changes: 3 additions & 3 deletions shells/bash/manageCsDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ fi

case "$1" in
"0")
dockerName="cs2-WeConnected-ns1"
dockerName="CS2-SWT"
;;

"1")
dockerName="cs2-WeConnected-ns2"
dockerName="CS2-SWT"
;;

*)
dockerName="cs2-WeConnected-ns1"
dockerName="CS2-SWT"
;;
esac

Expand Down
49 changes: 9 additions & 40 deletions src/configs/guildsConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const guildsConfigs = [
getContent: (params: any) => `🤖 Big thanks to <@${params.member.id}> for boosting the server! ⚡👾`
},
cs2: {
dockerAccess: ['cs2Admin'],
rconChannels: [],
chatChannels: [],
dockerAccess: []
},
ollama: {
url: "https://api.ctrlaidel.com/api"
Expand All @@ -58,36 +58,23 @@ export const guildsConfigs = [
getContent: (params: any) => `🤖 Say goodbye to <@${params.member.id}> ! 😢👾`
},
cs2: {
dockerAccess: ['cs2Admin'],
rconChannels: {
"1185347837026914304": {
port: 27016,
ip: "rvdprojects.synology.me",
password: env["RCON_PASS_192_168_1_128_27016"],
region: "US_EAST",
ip: env["CS2_IP_SWT"],
port: env["CS2_RCON_PORT_SWT"],
password: env["CS2_RCON_PASS_SWT"],
},
"1185593961541275698": {
dev: true,
port: 27016,
ip: "rvdprojects.synology.me",
password: env["RCON_PASS_192_168_1_128_27016"],
region: "US_EAST",
}
},
chatChannels: {
"1185991869121957938": {
port: 27016,
ip: "rvdprojects.synology.me",
password: env["RCON_PASS_192_168_1_128_27016"],
region: "US_EAST",
},
"1185983351325200444": {
dev: true,
port: 27016,
ip: "rvdprojects.synology.me",
password: env["RCON_PASS_192_168_1_128_27016"],
region: "US_EAST",
ip: env["CS2_IP_SWT"],
port: env["CS2_RCON_PORT_SWT"],
password: env["CS2_RCON_PASS_SWT"],
}
}
},
}
},
{
Expand Down Expand Up @@ -130,24 +117,6 @@ export const guildsConfigs = [
{
// StillNoCake
guildId: "1202439418204389417",
cs2: {
rconChannels: {
"1202439558952910871": {
port: 27015,
ip: "ts.stillnocake.com",
password: env["RCON_PASS_STILL_NO_CAKE"],
region: "US_EAST",
}
},
chatChannels: {
"1202440139083882527": {
port: 27015,
ip: "ts.stillnocake.com",
password: env["RCON_PASS_STILL_NO_CAKE"],
region: "US_EAST",
},
}
}
},
{
// Pankunai
Expand Down

0 comments on commit d418e00

Please sign in to comment.