generated from stegripe/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored by: Tiramitzu <[email protected]>
- Loading branch information
Showing
41 changed files
with
2,106 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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
|
||
LABEL maintainer "Stegripe Development <[email protected]>" | ||
Check warning on line 28 in Dockerfile
|
||
|
||
# Copy needed files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.