Skip to content

Commit

Permalink
update logs channel
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Dec 27, 2023
1 parent 1d29ece commit d12f432
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ DISCORD_TOKEN=
SERVER_ID=
SAY_LOGS_CHANNEL=
LOGS_CHANNEL=
SIMULATED_BAN_SHARE_LOGS_CHANNEL=

# These arent needed outside of production
MAVEN_REPO=
Expand Down
1 change: 1 addition & 0 deletions src/types/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ declare global {
WEBSERVER_PORT: string;
DATABASE_URL: string;
SIMULATED_BAN_SHARE_KEY: string;
SIMULATED_BAN_SHARE_LOGS_CHANNEL: string;
NODE_ENV: 'development' | 'dev-prod' | 'production';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/webserver/banshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const handleBanShare = (client: Client, req: Request, res: Response) => {
};

const handleBan = async (client: Client, req: Request) => {
const channel = client.channels.cache.get(process.env.LOGS_CHANNEL);
const channel = client.channels.cache.get(process.env.SIMULATED_BAN_SHARE_LOGS_CHANNEL);
const server = req.body.server;
const userId = req.body.userid;
const reason = req.body.reason;
Expand Down

0 comments on commit d12f432

Please sign in to comment.