Shitpost to jason on every one of his messages

This commit is contained in:
Luke Robles 2023-01-26 20:12:17 -08:00
parent ed58abe653
commit 4b6ea2de76
4 changed files with 8 additions and 3 deletions

View File

@ -4,7 +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 && echo "find . -name \"*sync-conflict*\" -delete; black .; ./bot.py" > /usr/local/bin/start && chmod +x /usr/local/bin/start RUN pip install black && echo "black .; ./bot.py" >/usr/local/bin/start && chmod +x /usr/local/bin/start
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

View File

@ -78,6 +78,13 @@ async def did_you_mean(ctx):
await ctx.reply("Did you mean /%s?" % command) await ctx.reply("Did you mean /%s?" % command)
@bot.listen("on_message")
# harass jason with shitposts
async def make_a_change(ctx):
if ctx.author.id == "83012791983673344":
await ctx.reply("Just tryin to make a change :-\\")
@bot.listen("on_message") @bot.listen("on_message")
async def convert_heic_to_jpg(ctx): async def convert_heic_to_jpg(ctx):
from cmagick import cmagick from cmagick import cmagick

View File

@ -1,2 +1 @@
find . -name "*sync-conflict*" -delete
docker run --rm -ti -v $(pwd):/tmp/python/app python:alpine sh -c "cd /tmp/python ; pip install -q black; black ." docker run --rm -ti -v $(pwd):/tmp/python/app python:alpine sh -c "cd /tmp/python ; pip install -q black; black ."

View File

@ -1,5 +1,4 @@
printf "\n[-] Formatting code\n" printf "\n[-] Formatting code\n"
find . -name "*sync-conflict*" -delete
./format_code.sh ./format_code.sh
printf "[+] Done\n" printf "[+] Done\n"