Skip to content

Commit

Permalink
Update translation, build docker workflow, youtube, dependency and Co…
Browse files Browse the repository at this point in the history
…deQL

Now, anyone who forks this repository can create their own Docker images, with the repository name also reflected in the image.
  • Loading branch information
hwangsihu committed Dec 23, 2024
1 parent 1e0ee13 commit e0b32e9
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 65 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: push
jobs:
docker_publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,7 +18,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/appujet/lavamusic
images: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
121 changes: 70 additions & 51 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,65 +9,84 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL'
name: "CodeQL Advanced"

on:
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '21 11 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
security-events: write
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
# required to fetch internal or private CodeQL packs
packages: read

steps:
- name: Checkout repository
uses: actions/checkout@v4
# only required for workflows in private repositories
actions: read
contents: read

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion Lavalink/example.application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ lavalink:
snapshot: false # set to true if you want to use snapshot builds
- dependency: "com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.1"
snapshot: false # set to true if you want to use snapshot builds
- dependency: "dev.lavalink.youtube:youtube-plugin:1.10.2"
- dependency: "dev.lavalink.youtube:youtube-plugin:1.11.2"
snapshot: false # set to true if you want to use snapshot builds
pluginsDir: './plugins'
server:
Expand Down
10 changes: 5 additions & 5 deletions locales/Korean.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lavalink": {
"description": "Lavalink 노드의 상태를 보여줘요",
"title": "Lavalink 상태",
"content": "플레이어: {players}\n재생 중: {playingPlayers}\n업타임: {uptime}\n코어 수: {cores}개\n메모리 사용량: {used} / {reservable}\n시스템 로드: {systemLoad}%\nLavalink 로드: {lavalinkLoad}%",
"content": "플레이어: {players}\n재생 중: {playingPlayers}\n업타임: {uptime}\n코어 수: {cores}개\n메모리 사용량: {used} / {reservable}\n시스템 부하: {systemLoad}%\nLavalink 부하: {lavalinkLoad}%",
"page_info": "{index} 페이지 중 {total} 페이지"
},
"invite": {
Expand All @@ -31,13 +31,13 @@
"help": {
"description": "도움말 메뉴를 출력해요",
"options": {
"command": "특정 명령어의 정보를 얻고 싶다면 여기에 입력해주세요"
"command": "특정 명령어의 정보를 얻고 싶다면 여기에 명령어를 입력하세요"
},
"content": "안녕하세요! 저는 [Lavamusic](https://github.com/appujet/lavamusic)와 Discord.js로 만들어진 음악 봇, {bot}이에요. 명령어에 대한 자세한 정보를 얻고 싶다면 `{prefix}help <명령어>`를 사용해보세요.",
"title": "도움말 메뉴",
"not_found": "`{cmdName}` 명령어는 존재하지 않아요.",
"help_cmd": "**설명:** {description}\n**사용 방법:** {usage}\n**예시:** {examples}\n**별칭:** {aliases}\n**카테고리:** {category}\n**쿨다운:** {cooldown}초\n**필요한 권한:** {premUser}\n**봇에게 필요한 권한:** {premBot}\n**개발자 전용:** {dev}\n**빗금 명령어 사용 가능:** {slash}\n**인수 필요:** {args}\n**노래 재생 중에만 사용 가능:** {player}\n**DJ만 사용 가능:** {dj}\n**DJ에게 필요한 권한:** {djPerm}\n**음성 채널 접속 중에만 사용 가능:** {voice}",
"footer": "명령어에 대한 자세한 내용을 보려면 {prefix}help <command>를 사용하세요."
"footer": "명령어에 대한 자세한 내용을 보려면 {prefix}help <명령어>를 사용하세요."
},
"botinfo": {
"description": "봇에 대한 정보를 표시해요",
Expand All @@ -47,7 +47,7 @@
"description": "봇에 대한 정보를 확인해요",
"fields": {
"creator": "제작",
"repository": "GitHub 저장소",
"repository": "GitHub",
"support": "지원",
"description": "그는 더 많은 코딩 경험을 쌓기 위해 처음으로 오픈 소스 프로젝트를 만들고 싶어했어요. 이 프로젝트에서 그는 버그를 줄이는 도전을 했어요. LavaMusic을 즐겁게 사용해 주시길 바랄게요!"
}
Expand Down Expand Up @@ -583,7 +583,7 @@
"vote_message": "잠깐! 이 명령어를 사용하려면 top.gg에서 투표해야 해요."
},
"message": {
"prefix_mention": "이 서버의 접두사는 `{prefix}`예요. 더 많은 정보를 원하시나요? `{prefix}help`를 사용하세요.\n안전하게 지내시고, 멋진 하루 보내세요!",
"prefix_mention": "이 서버의 접두사는 `{prefix}`예요. 더 많은 정보를 원하시나요? `{prefix}help`를 사용하세요.\n안전하고 멋진 하루 보내세요!",
"no_send_message": "봇에게 **`메시지 보내기`**, **`채널 보기`**, **`링크 첨부`** 또는 **`메시지 기록 보기`** 권한이 없어요.",
"no_permission": "이 명령어를 실행하기 위한 봇의 권한이 부족해요.",
"no_user_permission": "이 명령어를 실행하기 위한 권한이 부족해요.",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/i18n": "^0.13.12",
"@types/node": "^22.10.1",
"@types/node": "^22.10.2",
"@types/signale": "^1.4.7",
"prisma": "^6.0.1",
"typescript": "^5.7.2"
Expand All @@ -47,13 +47,13 @@
"dotenv": "^16.4.7",
"genius-lyrics-api": "^3.2.1",
"i18n": "^0.15.1",
"lavalink-client": "^2.4.1",
"lavalink-client": "^2.4.3",
"node-system-stats": "^1.3.0",
"signale": "^1.4.0",
"topgg-autoposter": "^2.0.2",
"tslib": "^2.8.1",
"undici": "^7.1.0",
"zod": "^3.23.8"
"undici": "^7.2.0",
"zod": "^3.24.1"
},
"signale": {
"displayScope": true,
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export enum Language {
// Croatian = "Croatian",
// Czech = "Czech",
// Danish = "Danish",
// Dutch = "Dutch",
Dutch = "Dutch",
// EnglishGB = "EnglishGB",
EnglishUS = 'EnglishUS',
// Finnish = "Finnish",
Expand Down Expand Up @@ -49,7 +49,7 @@ export const LocaleFlags = {
// [Language.Croatian]: "🇭🇷",
// [Language.Czech]: "🇨🇿",
// [Language.Danish]: "🇩🇰",
// [Language.Dutch]: "🇳🇱",
[Language.Dutch]: "🇳🇱",
// [Language.EnglishGB]: "🇬🇧",
[Language.EnglishUS]: '🇺🇸',
// [Language.Finnish]: "🇫🇮",
Expand Down

0 comments on commit e0b32e9

Please sign in to comment.