Skip to content

Commit 76304f1

Browse files
committed
Short circuit update method if the bot is running in docker
1 parent c3352a6 commit 76304f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cogs/utility.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,16 @@ async def update(self, ctx, *, flag: str = ""):
19511951
To stay up-to-date with the latest commit from GitHub, specify "force" as the flag.
19521952
"""
19531953

1954+
if self.bot.hosting_method == HostingMethod.DOCKER:
1955+
await ctx.send(
1956+
embed=discord.Embed(
1957+
title="Error",
1958+
description="This command is not supported on Docker.",
1959+
color=self.bot.error_color,
1960+
)
1961+
)
1962+
return
1963+
19541964
changelog = await Changelog.from_url(self.bot)
19551965
latest = changelog.latest_version
19561966

0 commit comments

Comments
 (0)