Initial commit

This commit is contained in:
askiiart 2023-03-08 09:13:52 -06:00
commit f4a7a0bcdb
3 changed files with 36 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -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"]

23
app.py Normal file
View file

@ -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)

2
requirements.txt Normal file
View file

@ -0,0 +1,2 @@
python_dotenv
discord