Skip to content

Commit

Permalink
Discord Bot 🤖
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooshaba committed Feb 18, 2024
1 parent 3d83676 commit 6bebd4b
Show file tree
Hide file tree
Showing 44 changed files with 1,169 additions and 1,031 deletions.
66 changes: 66 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
node_modules
**/node_modules
.gitignore
*.md
dist
**/dist
**/out/
**/cache/
**/bindings/
**/artifacts/
**/broadcast/
**/deploys/

# Build outputs
dist
build
tmp

# Version control
.git
.gitignore
.svn
.hg
.hgignore
.hgcheck

# System Files
.DS_Store
Thumbs.db

# NPM files
npm-debug.log
npm-error.log

# Configuration files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Editor directories and files
.idea
*.swp
*.swo
*.sublime-project
*.sublime-workspace

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional tsc cache
*.tsbuildinfo

# Optional IDE files
.vscode
*.sln
*.suo
*.ntvs*
*.njsproj
*.suo
*.user
*.userprefs
21 changes: 0 additions & 21 deletions .github/workflows/close-issues.yml

This file was deleted.

48 changes: 48 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM docker.io/library/debian:bullseye-slim as base
ENV SHELL /bin/bash

WORKDIR /opt
RUN apt-get -y update --fix-missing && \
apt-get -y upgrade && \
apt-get install -y --no-install-recommends \
libssl-dev make cmake graphviz \
git pkg-config curl time rhash ca-certificates jq \
python3 python3-pip lsof ruby ruby-bundler git-restore-mtime xz-utils zstd unzip gnupg protobuf-compiler \
wget net-tools iptables iproute2 iputils-ping ed zlib1g-dev wabt

# node.js
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs && \
node --version && \
npm --version

# foundry
ENV PATH="${PATH}:/root/.foundry/bin"
RUN curl -L https://foundry.paradigm.xyz/ | bash && \
${HOME}/.foundry/bin/foundryup && \
forge --version && \
cast --version && \
anvil --version && \
chisel --version

# pnpm
ENV PNPM_HOME="/pnpm"
ENV PATH="${PATH}:${PNPM_HOME}"
RUN npm install pnpm --global && pnpm --version

FROM base AS skystrife
COPY . /app
WORKDIR /app

# listen... it was failing
RUN sed -i '/run-pty/d' package.json

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN pnpm --filter ecs-browser run build
RUN pnpm --filter phaserx run build
RUN pnpm --filter contracts run build


4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dev": "pnpm --filter ecs-browser run build && pnpm --filter phaserx run build && run-pty % % pnpm run dev:client % pnpm run dev:contracts % pnpm run dev:upload-map % pnpm run dev:copy-maps % pnpm run dev:create-debug-matches",
"dev:client": "pnpm --filter client run dev",
"dev:contracts": "DEBUG=mud:* pnpm --filter contracts run dev",
"dev:upload-map": "wait-port localhost:8545 && sleep 60 && pnpm --filter headless-client run upload-map:dev",
"dev:copy-maps": "wait-port localhost:8545 && sleep 70 && pnpm --filter headless-client run copy-maps:dev",
"dev:upload-map": "wait-port localhost:8545 && sleep 70 && pnpm --filter headless-client run upload-map:dev",
"dev:copy-maps": "wait-port localhost:8545 && sleep 80 && pnpm --filter headless-client run copy-maps:dev",
"dev:create-debug-matches": "wait-port localhost:8545 && pnpm --filter headless-client run create-debug-matches:dev"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
"@latticexyz/store-sync": "2.0.0-main-5ab67e33",
"@latticexyz/utils": "2.0.0-main-5ab67e33",
"@latticexyz/world": "2.0.0-main-5ab67e33",
"@protobuf-ts/grpcweb-transport": "^2.9.1",
"@libp2p/multistream-select": "4.0.9",
"@protobuf-ts/grpcweb-transport": "^2.9.1",
"@protobuf-ts/plugin": "^2.9.1",
"@protobuf-ts/runtime-rpc": "^2.9.1",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "2.0.6",
"@rainbow-me/rainbowkit": "1.0.10",
"@solidstate/contracts": "^0.0.52",
"@types/color": "^3.0.4",
"@types/debug": "4.1.12",
"@types/lodash": "^4.14.199",
"@types/luxon": "3.3.1",
"@types/react": "^18.2.24",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/app/Amalgema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ const AmalgemaLockScreen = () => {
}}
className="fixed top-0 left-0 h-screen w-screen bg-cover"
/>
<div className="text-4xl font-bold">Sky Strife will be back next season!</div>
<div className="text-4xl font-bold">Sky Strife is in maintenance mode.</div>
<div className="h-3" />
<div className="text-xl text-ss-text-light text-center">
<span className="font-bold">{SEASON_NAME} starts on February 6th, 2024</span>
{/* <span className="font-bold">{SEASON_NAME} starts on February 6th, 2024</span> */}

<div>
Follow along on{" "}
Expand Down
24 changes: 0 additions & 24 deletions packages/client/src/app/amalgema-ui/AllMatchesDebug.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions packages/client/src/app/amalgema-ui/HistoricalMatch.tsx

This file was deleted.

49 changes: 0 additions & 49 deletions packages/client/src/app/amalgema-ui/HistoricalMatches.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions packages/client/src/app/amalgema-ui/LiveMatch.tsx

This file was deleted.

Loading

0 comments on commit 6bebd4b

Please sign in to comment.