Skip to content

Commit

Permalink
feat: doing touchups
Browse files Browse the repository at this point in the history
rebranding, adapt from @stegripe/template, use @stegripe/eslint-config, and more
  • Loading branch information
mzrtamp committed Jul 18, 2024
1 parent 6c66e91 commit 9dae264
Show file tree
Hide file tree
Showing 40 changed files with 3,208 additions and 4,198 deletions.
24 changes: 24 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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=""

#==============================================================================
# OPTIONAL - Do you want to enable slash command support?
# Example: ENABLE_SLASH_COMMAND="yes"
# Default: yes
ENABLE_SLASH_COMMAND=""

#==============================================================================
# In which mode do you want to activate your bot?
# Example: NODE_ENV="production"
# Available: production, development
# Default: production
NODE_ENV=""
5 changes: 0 additions & 5 deletions .env_example

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/build-docker.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and Push Docker Image to the container image registry

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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Lint code and compile setup script
on:
push:
branches:
- main
- "**"
pull_request:
branches:
- "**"

jobs:
test:
uses: stegripe/workflows/.github/workflows/pnpm-lint-and-test.yml@main
uses: stegripe/workflows/.github/workflows/pnpm-lint-and-test.yaml@main
secrets: inherit
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ RUN pnpm prune --production
# Get ready for production
FROM ghcr.io/hazmi35/node:21-alpine

LABEL name "template"
LABEL maintainer "Clytage <admin@clytage.org>"
LABEL name "discord-bot-template"
LABEL maintainer "Stegripe Development <support@stegripe.org>"

# Copy needed files
COPY --from=build-stage /tmp/build/package.json .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @clytage/discord-bot-template
# @stegripe/discord-bot-template

A template for Stegripe Discord bot projects.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { common, modules, node, stylistic, typescript, ignores } from "@stegripe/eslint-config";

export default [...common, ...modules, ...node, ...stylistic, ...typescript, ...ignores];
Loading

0 comments on commit 9dae264

Please sign in to comment.