Skip to content

Commit

Permalink
change delay and add attempts to restart
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath committed Dec 9, 2023
1 parent dc03d62 commit ad4aab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cogs/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ async def get_logs(
@commands.slash_command(name="shutdown", description=Messages.shutdown_brief)
async def shutdown(self, inter: disnake.ApplicationCommandInteraction):
await inter.send("Shutting down...")
await self.bot.close()
exit(0)
exit(1)

async def create_selects(self):
"""Slices dictionary of all cogs to chunks for select."""
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ services:
bot:
deploy:
restart_policy:
condition: unless-stopped
condition: on-failure
delay: 5s
window: 500s
window: 20s
max_attempts: 3
build: .
volumes:
- .:/rubbergod:Z
Expand Down

0 comments on commit ad4aab9

Please sign in to comment.