Skip to content

Commit

Permalink
feat: initialize project
Browse files Browse the repository at this point in the history
Co-authored by: Tiramitzu <[email protected]>
  • Loading branch information
mzrtamp committed Sep 14, 2024
1 parent 8f99237 commit c7e9a49
Show file tree
Hide file tree
Showing 41 changed files with 2,106 additions and 135 deletions.
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is your bot's configuration file, control your bot's environment here. Every value must contain a string ("")

#==============================================================================
# OPTIONAL = This value is optional, and can be left blank.
# IMPORTANT = It is recommended that you pay attention to the value.
# MULTIPLE - This value can be multiple strings, each value split with a comma or semi-colon. You can use single-quote (') to escape whether you have any comma or semicolon in the value.

#==============================================================================
# IMPORTANT - What is your Discord bot's token?
# Example: DISCORD_TOKEN="Your.Discord.Bot.Token"
DISCORD_TOKEN=""

#==============================================================================
# In which mode do you want to activate your bot?
# Example: NODE_ENV="production"
# Available: production, development
# Default: production
NODE_ENV=""
32 changes: 16 additions & 16 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# name: Build and Push Docker Image to the container image registry
name: Build and Push Docker Image to the container image registry

# on:
# release:
# types: [created]
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
# paths:
# - "Dockerfile"
on:
release:
types: [created]
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "Dockerfile"

# jobs:
# docker:
# uses: stegripe/workflows/.github/workflows/docker-build-and-push.yaml@main
# secrets: inherit
jobs:
docker:
uses: stegripe/workflows/.github/workflows/docker-build-and-push.yaml@main
secrets: inherit
10 changes: 0 additions & 10 deletions .github/workflows/release.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint code and compile setup script
on:
push:
branches:
- main
- "**"
pull_request:
branches:
- "**"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN pnpm prune --production
# Get ready for production
FROM ghcr.io/hazmi35/node:21-alpine

LABEL name "template"
LABEL name "discord-sendiri-bot"

Check warning on line 27 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker / build

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
LABEL maintainer "Stegripe Development <[email protected]>"

Check warning on line 28 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker / build

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

# Copy needed files
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @stegripe/template
# @stegripe/discord-sendiri-bot

A template to generate well-configured project base for Stegripe.
Mau ngapain lihat ke sini?
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ x-common-general: &common-general
services:
sate:
<<: *common-general
image: ghcr.io/stegripe/template:latest-dev
container_name: template
image: ghcr.io/stegripe/discord-sendiri-bot:latest-dev
container_name: discord-sendiri-bot
env_file: .env
networks:
- net
Expand Down
31 changes: 21 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
{
"name": "template",
"name": "discord-sendiri-bot",
"version": "1.0.0",
"description": "A template to generate well-configured project base for Stegripe.",
"description": "Mau ngapain lihat ke sini?",
"license": "AGPL-3.0",
"author": "Stegripe Development <[email protected]>",
"repository": {
"type": "git",
"url": "git+https://github.com/stegripe/template.git"
"url": "git+https://github.com/stegripe/discord-sendiri-bot.git"
},
"bugs": {
"url": "https://github.com/stegripe/template/issues"
"url": "https://github.com/stegripe/discord-sendiri-bot/issues"
},
"homepage": "https://github.com/stegripe/template#readme",
"homepage": "https://github.com/stegripe/discord-sendiri-bot#readme",
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "npm run lint && npm run compile",
"build": "pnpm run lint && pnpm run compile",
"compile": "tsc --build tsconfig.json",
"lint": "eslint . --ignore-pattern .gitignore",
"lint:fix": "npm run lint --fix",
"start": "node --es-module-specifier-resolution=node .",
"start:dev": "rimraf ./dist && npm run compile && npm start"
"lint:fix": "pnpm run lint --fix",
"start": "node --es-module-specifier-resolution=node -r dotenv/config . | pino-pretty -t \"SYS:yyyy-MM-dd HH:mm:ss\"",
"start:dev": "rimraf ./dist && pnpm run compile && pnpm start"
},
"engines": {
"node": ">=16.6.0",
"npm": ">=7.0.0"
},
"devDependencies": {
"@stegripe/eslint-config": "^1.0.1",
"@types/node": "^20.16.5",
"@types/node": "^20.16.3",
"eslint": "^9.10.0",
"rimraf": "^6.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"date-fns": "^3.6.0",
"discord-api-types": "^0.37.100",
"discord.js-selfbot-v13": "^3.3.0",
"dotenv": "^16.4.5",
"got": "^14.4.2",
"pino": "^9.3.2",
"pino-pretty": "^11.2.2",
"tree-kill": "^1.2.2",
"tslib": "^2.7.0"
}
}
Loading

0 comments on commit c7e9a49

Please sign in to comment.