Maintence
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Environment
|
# Environment
|
||||||
.env
|
.env*
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
FROM oven/bun:1-alpine AS deps
|
FROM oven/bun:1-alpine AS deps
|
||||||
|
|
||||||
|
# Set production environment
|
||||||
|
ENV NODE_ENV="production"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
RUN bun install --frozen-lockfile --production
|
RUN bun install --frozen-lockfile --production
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
"@types/bun": "latest",
|
"@types/bun": "latest",
|
||||||
"@types/node": "^25.9.5"
|
"@types/node": "^25.9.5"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "bun run src/index.ts"
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ client.once(Events.ClientReady, async (readyClient) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on("guildMemberAdd", async (guildMember) => {
|
client.on("guildMemberAdd", async (guildMember) => {
|
||||||
await roleService.addStarterRoles(guildMember);
|
await roleService.giveStarterRoles(guildMember);
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("messageCreate", async (message) => {
|
client.on("messageCreate", async (message) => {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default class RoleService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async addStarterRoles(guildMember: GuildMember) {
|
async giveStarterRoles(guildMember: GuildMember) {
|
||||||
for (const starterRole of this.starterRoles) {
|
for (const starterRole of this.starterRoles) {
|
||||||
const role = this.getRoleByName(guildMember.guild, starterRole);
|
const role = this.getRoleByName(guildMember.guild, starterRole);
|
||||||
if (!role) continue;
|
if (!role) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user