Skip to content

Commit 0bd91ad

Browse files
author
vivi
committed
Big rewrite push
1 parent ff92edb commit 0bd91ad

File tree

94 files changed

+19035
-2972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+19035
-2972
lines changed

.dockerignore

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
__pycache__
2-
venv
3-
.env
1+
.git/
2+
.yarn/*
3+
!.yarn/releases
4+
!.yarn/plugins
5+
!.yarn/sdks
6+
!.yarn/versions
7+
**/.pnp.*
8+
node_modules
9+
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
dist
14+
15+
.env.local
16+
.env.production.local
17+
.env.development.local
18+
.env.test.local

.env

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
LOG_LEVEL=INFO
2+
DISCORD_TOKEN=
3+
GUILD_ID=
4+
5+
API_PORT=9100
6+
7+
DATABASE_URL=postgres://discohook@localhost/discohook
8+
CACHE_URL=redis://localhost:6379/0

.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LOG_LEVEL=DEBUG

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
with:
1414
registry: ghcr.io
1515
username: ${{ github.repository_owner }}
16-
password: ${{ secrets.CR_PAT }}
16+
password: ${{ secrets.GITHUB_TOKEN }}
17+
1718
- name: Set up Docker Buildx
1819
uses: docker/setup-buildx-action@v1
20+
1921
- name: Build and push
2022
uses: docker/build-push-action@v2
2123
with:

.gitignore

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
__pycache__
2-
venv
3-
.env
1+
.yarn/*
2+
!.yarn/releases
3+
!.yarn/plugins
4+
!.yarn/sdks
5+
!.yarn/versions
6+
.pnp.*
7+
node_modules
8+
9+
yarn-debug.log*
10+
yarn-error.log*
11+
12+
dist
13+
14+
.env.local
15+
.env.production.local
16+
.env.development.local
17+
.env.test.local

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "all",
3+
"semi": false
4+
}

.vscode/settings.json

-4
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

+546
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

+9
Large diffs are not rendered by default.

.yarn/releases/yarn-3.2.2.cjs

+783
Large diffs are not rendered by default.

.yarnrc.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5+
spec: "@yarnpkg/plugin-interactive-tools"
6+
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
7+
spec: "@yarnpkg/plugin-typescript"
8+
9+
yarnPath: .yarn/releases/yarn-3.2.2.cjs

Dockerfile

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
FROM python:3.8
1+
FROM node:16
2+
3+
RUN apt update && apt -y install git python3 build-essential
4+
5+
ENV NODE_ENV production
26

37
WORKDIR /usr/src/app
48

5-
COPY requirements.txt .
6-
RUN pip install --no-cache-dir -r requirements.txt
9+
COPY .yarnrc.yml package.json yarn.lock ./
10+
COPY .yarn ./.yarn
11+
RUN yarn install --immutable
712

813
COPY . .
14+
RUN yarn run build
915

10-
CMD [ "python", "main.py" ]
16+
CMD [ "node", "dist/index.js" ]

README.md

-49
This file was deleted.

bot/__init__.py

-136
This file was deleted.

bot/checks.py

-23
This file was deleted.

bot/cmd.py

-71
This file was deleted.

0 commit comments

Comments
 (0)