Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4f3bfe103 |
@@ -105,7 +105,6 @@ venv/
|
|||||||
ENV/
|
ENV/
|
||||||
env.bak/
|
env.bak/
|
||||||
venv.bak/
|
venv.bak/
|
||||||
poetry.lock
|
|
||||||
|
|
||||||
# Spyder project settings
|
# Spyder project settings
|
||||||
.spyderproject
|
.spyderproject
|
||||||
|
|||||||
+6
-3
@@ -1,19 +1,22 @@
|
|||||||
FROM python:3.11.9-slim
|
FROM python:3.10.6-slim
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install git
|
RUN apt-get update && apt-get -y upgrade && apt-get -y install git
|
||||||
|
|
||||||
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
|
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
|
||||||
COPY config.py config.py
|
COPY config.py config.py
|
||||||
COPY main.py main.py
|
COPY main.py main.py
|
||||||
COPY utils.py utils.py
|
COPY utils.py utils.py
|
||||||
COPY pyproject.toml pyproject.toml
|
|
||||||
|
|
||||||
COPY classes classes/
|
COPY classes classes/
|
||||||
COPY cogs cogs/
|
COPY cogs cogs/
|
||||||
COPY database_setup database_setup/
|
COPY database_setup database_setup/
|
||||||
|
|
||||||
RUN pip install --upgrade pip && pip install poetry && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
CMD ["python3", "-u", "./main.py"]
|
CMD ["python3", "-u", "./main.py"]
|
||||||
@@ -25,8 +25,9 @@ CREATE TABLE Votes(
|
|||||||
ElectionCycle varchar(30) not null,
|
ElectionCycle varchar(30) not null,
|
||||||
VoterId bigint unsigned not null,
|
VoterId bigint unsigned not null,
|
||||||
VotedForId bigint unsigned,
|
VotedForId bigint unsigned,
|
||||||
|
Type varchar(14) check("Type" in ('Council','DiscordManager','ClanLeader')),
|
||||||
FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle),
|
FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle),
|
||||||
PRIMARY KEY (ElectionCycle, VoterId)
|
PRIMARY KEY (ElectionCycle, VoterId, Type)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE UserBirthday (
|
CREATE TABLE UserBirthday (
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
[tool.poetry]
|
|
||||||
name = "dakiny-bot"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = "Dakiny's Discord Bot."
|
|
||||||
authors = ["imcompiling <[email protected]>"]
|
|
||||||
readme = "README.md"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = "^3.11"
|
|
||||||
gitpython = "3.1.43"
|
|
||||||
fastapi = "0.111.0"
|
|
||||||
hydra-core = "1.3.2"
|
|
||||||
nextcord = "2.4.2"
|
|
||||||
pandas = "1.5.2"
|
|
||||||
python-dotenv = "1.0.0"
|
|
||||||
pytz = "2022.7.1"
|
|
||||||
sqlalchemy = "1.4.46"
|
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
GitPython==3.1.43
|
||||||
|
fastapi==0.111.0
|
||||||
|
hydra-core==1.3.2
|
||||||
|
nextcord==2.4.2
|
||||||
|
pandas==1.5.2
|
||||||
|
python-dotenv==1.0.0
|
||||||
|
pytz==2022.7.1
|
||||||
|
sqlalchemy==1.4.46
|
||||||
Reference in New Issue
Block a user