Compare commits
No commits in common. "f709c286fa7528308d3e14dadff80bad6ffeeea6" and "4a091fd9fde29f02dc198c8f8cb2f7796fa5ba16" have entirely different histories.
f709c286fa
...
4a091fd9fd
4 changed files with 2 additions and 22 deletions
|
|
@ -1,5 +0,0 @@
|
|||
/config/
|
||||
/data/
|
||||
/modules/__pycache__
|
||||
/whitelist/
|
||||
/.gitignore
|
||||
15
Dockerfile
15
Dockerfile
|
|
@ -1,15 +0,0 @@
|
|||
# Basis-Image
|
||||
FROM python:3.12-slim-bookworm
|
||||
|
||||
# Arbeitsverzeichnis setzen
|
||||
WORKDIR /app
|
||||
|
||||
# Abhängigkeiten kopieren und installieren
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Anwendungsdateien kopieren
|
||||
COPY . .
|
||||
|
||||
# Startbefehl
|
||||
CMD ["python", "./main.py"]
|
||||
2
main.py
2
main.py
|
|
@ -46,4 +46,6 @@ async def allow(ctx:slash.Context, user:slash.Option(description="der zu whiteli
|
|||
if await functions.isMod(ctx, bot):
|
||||
await functions.cmdallow(ctx, user.strip(), bot)
|
||||
|
||||
|
||||
|
||||
bot.run(token)
|
||||
|
|
@ -3,7 +3,6 @@ import json
|
|||
import requests
|
||||
import urllib
|
||||
import random
|
||||
import asyncio
|
||||
|
||||
from os import path
|
||||
from shutil import copyfile
|
||||
|
|
@ -68,7 +67,6 @@ async def cmdshutdown(ctx:slash.Context, bot):
|
|||
print('Start logging out')
|
||||
await bot.logout()
|
||||
bot.clear()
|
||||
asyncio.run(bot.close())
|
||||
print('Log Out succesful\nExiting')
|
||||
exit()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue