Skip to content

Commit

Permalink
not helping...
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraInstinct0x committed Mar 5, 2024
1 parent fbd3ea2 commit a41b20b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM --platform=linux/amd64 node:18-buster AS build-stage
FROM --platform=linux/arm64 node:18-buster AS build-stage
RUN apt-get update && \
apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm", "start"]
CMD ["npm", "start"]
11 changes: 7 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ console.log(`\u001b[0m`)
console.log(chalk.blue(chalk.bold(`System`)), (chalk.white(`>>`)), chalk.red(`Version ${require(`${process.cwd()}/package.json`).version}`), (chalk.green(`loaded`)))
console.log(`\u001b[0m`);

manager.on('shardCreate', shard => {
let embed = new Discord.EmbedBuilder()
manager.on('shardCreate', async (shard) => {
console.log('Shard Launched')
let embed = new Discord.EmbedBuilder()
.setTitle(`🆙・Launching shard`)
.setDescription(`A shard has just been launched`)
.setFields([
Expand Down Expand Up @@ -136,8 +137,10 @@ manager.on('shardCreate', shard => {
embeds: [embed],
});
});
});

shard.on('error', (error) => {
console.error(error)
})
})

manager.spawn();

Expand Down

0 comments on commit a41b20b

Please sign in to comment.