Skip to content

Commit

Permalink
Allow db number
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Feb 25, 2023
1 parent a8210d8 commit fb5b9ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ export const MentionsBot: GuardFunction<ArgsOf<"messageCreate">> = async (
export const getRedisConnection = () => ({
host: process.env.REDIS_HOST!,
port: Number.parseInt(process.env.REDIS_PORT!),
db: process.env.REDIS_DB ? Number.parseInt(process.env.REDIS_DB!) : 0,
});

0 comments on commit fb5b9ce

Please sign in to comment.