From f4a7a0bcdb0300ba2942137a957bbb875a5cc2d6 Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 8 Mar 2023 09:13:52 -0600 Subject: [PATCH] Initial commit --- Dockerfile | 11 +++++++++++ app.py | 23 +++++++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 Dockerfile create mode 100644 app.py create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9d08945 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1 + +FROM python:3.9-bullseye + +WORKDIR /app + +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt + +COPY app.py app.py +CMD ["python3", "app.py"] \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..5961bb6 --- /dev/null +++ b/app.py @@ -0,0 +1,23 @@ +import discord +import os +from dotenv import load_dotenv +from discord.ext import commands + +load_dotenv() + +intents = discord.Intents.none() +intents.messages = True +intents.message_content = True +client = commands.Bot(command_prefix="/", intents=intents) +token = os.getenv('TOKEN') + +@client.event +async def on_ready(): + print("Logged in as a bot {0.user}".format(client)) + +@client.command(name='aquila') +async def aquila(ctx): + await ctx.send("Who gave permission for this? I sure as hell didn't.") + +print(token) +client.run(token) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4ce2b8b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +python_dotenv +discord \ No newline at end of file