dont use message.author since wer'e in a slash command
This commit is contained in:
parent
e58ee7d728
commit
134f0df3e2
@ -4,6 +4,7 @@ RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r re
|
|||||||
|
|
||||||
FROM python:3.8-slim
|
FROM python:3.8-slim
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick
|
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick
|
||||||
|
RUN pip install black
|
||||||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||||
ADD app /app
|
ADD app /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -89,8 +89,7 @@ class ServerUtils(commands.Cog):
|
|||||||
|
|
||||||
@commands.slash_command(guild_ids=None, name="dot", description="dot")
|
@commands.slash_command(guild_ids=None, name="dot", description="dot")
|
||||||
async def dot(self, ctx: commands.Context):
|
async def dot(self, ctx: commands.Context):
|
||||||
if ctx.message.author.id == core_utils.my_id:
|
if ctx.author.id == core_utils.my_id:
|
||||||
await ctx.delete()
|
|
||||||
for role in ctx.guild.roles:
|
for role in ctx.guild.roles:
|
||||||
try:
|
try:
|
||||||
if role.name != "@everyone":
|
if role.name != "@everyone":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user