Skip to content

Commit

Permalink
ClashKing v4
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Feb 13, 2024
1 parent 74222ea commit e2fe05f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# Use an updated Python image
FROM python:3.11-bookworm

# Install dependencies
RUN apt-get update && apt-get install -y libsnappy-dev

COPY requirements.txt /app/
# Set the working directory in the container
WORKDIR /app

RUN pip install -r requirements.txt
# First, copy only the requirements.txt file
COPY requirements.txt .

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Now copy the rest of the application code into the container
COPY . .

CMD ["python3", "main.py"]
# Command to run the application
CMD ["python3", "main.py"]
2 changes: 2 additions & 0 deletions commands/other/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ async def stat(self, ctx: disnake.ApplicationCommandInteraction):
num_clans = await self.bot.clan_db.count_documents({})
num_tickets = await self.bot.open_tickets.count_documents({})
inservers = len(self.bot.guilds)
chunked_guilds = len([g for g in self.bot.guilds if g.chunked])
members = sum(guild.member_count - 1 for guild in self.bot.guilds)
embed = disnake.Embed(title=f'{self.bot.user.name} Stats',
description=f"<:bot:862911608140333086> Bot: {me}\n" +
f"<:discord:840749695466864650> Discord Api Ping: {round(self.bot.latency * 1000, 2)} ms\n" +
f"<:server:863148364006031422> In {str(inservers)} servers\n" +
f"<:server:863148364006031422> {str(chunked_guilds)} servers loaded\n" +
f"<:server:863148364006031422> Shard Count: {self.bot.shard_count}\n" +
f"<:server:863148364006031422> You are on shard {ctx.guild.shard_id}\n" +
f"<a:num:863149480819949568> Watching {members} users\n" +
Expand Down

0 comments on commit e2fe05f

Please sign in to comment.