Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
38f1ae1
chore: update Node.js and dependency compatibility
LoiFragola Sep 2, 2026
7a9e2dc
refactor: migrate client initialization to discord.js v14
LoiFragola Sep 2, 2026
5ec1058
refactor: modernize message command handler
LoiFragola Sep 2, 2026
15c34c2
i18n: translate ready event output
LoiFragola Sep 2, 2026
95d2647
i18n: translate addmoney command
LoiFragola Sep 2, 2026
51ad08f
i18n: translate balance command
LoiFragola Sep 2, 2026
6f60c04
i18n: translate beg command
LoiFragola Sep 2, 2026
7a3bbd8
i18n: translate buy command
LoiFragola Sep 2, 2026
4f024d2
i18n: translate daily command
LoiFragola Sep 2, 2026
8fc0c7e
refactor: migrate help embed to discord.js v14
LoiFragola Sep 2, 2026
513a595
refactor: migrate inventory embed to discord.js v14
LoiFragola Sep 2, 2026
d28a695
refactor: migrate leaderboard embed to discord.js v14
LoiFragola Sep 2, 2026
0309348
refactor: migrate ping command to discord.js v14
LoiFragola Sep 2, 2026
5dce5ff
refactor: update prefix permissions for discord.js v14
LoiFragola Sep 2, 2026
dc0ed7f
i18n: translate rob command
LoiFragola Sep 2, 2026
62827d4
i18n: translate search command
LoiFragola Sep 2, 2026
e8b7240
i18n: translate setmoney command
LoiFragola Sep 2, 2026
6d039ec
refactor: migrate shop embed to discord.js v14
LoiFragola Sep 2, 2026
d145f33
i18n: translate weekly command
LoiFragola Sep 2, 2026
df9e307
i18n: translate work command
LoiFragola Sep 2, 2026
41617db
refactor: modernize counter cleanup and translate messages
LoiFragola Sep 2, 2026
bda7367
i18n: translate transfer command
LoiFragola Sep 2, 2026
111f333
docs: update README for Node.js 20+ and Turkish usage
LoiFragola Sep 2, 2026
78e7eb2
Update README.md
LoiFragola Sep 2, 2026
448c560
Fix typo in README description
LoiFragola Sep 2, 2026
59b6776
Update README.md
LoiFragola Sep 2, 2026
fad5b10
feat: add guild slash command definitions
LoiFragola Sep 2, 2026
100497a
feat: handle slash command interactions
LoiFragola Sep 2, 2026
b2e9f5b
feat: deploy guild slash commands on startup
LoiFragola Sep 2, 2026
36827c1
feat: add server id to bot configuration
LoiFragola Sep 2, 2026
77fb3bb
fix: initialize default prefix for all command handlers
LoiFragola Sep 2, 2026
99d6eb4
fix: validate guild id and prevent repeated slash deployments
LoiFragola Sep 2, 2026
b55b4a9
Update README with new bot command deployment feature
LoiFragola Sep 2, 2026
4aea5a0
Rename command and update usage instructions
LoiFragola Sep 2, 2026
e91313d
fix: restore addmoney command key and add Turkish aliases
LoiFragola Sep 2, 2026
70d50aa
feat: add Turkish balance aliases
LoiFragola Sep 2, 2026
8ed0358
feat: add Turkish beg aliases
LoiFragola Sep 2, 2026
b77a7da
feat: add Turkish buy aliases
LoiFragola Sep 2, 2026
f403c37
feat: add Turkish daily aliases
LoiFragola Sep 2, 2026
2f852cd
feat: add Turkish help aliases
LoiFragola Sep 2, 2026
a314391
feat: add Turkish inventory aliases
LoiFragola Sep 2, 2026
c1b0215
feat: add Turkish leaderboard aliases
LoiFragola Sep 2, 2026
bc5c7bb
feat: add Turkish ping aliases
LoiFragola Sep 2, 2026
0f30061
feat: add Turkish prefix aliases
LoiFragola Sep 2, 2026
c43b0cc
feat: add Turkish rob aliases
LoiFragola Sep 2, 2026
18db8c4
feat: add Turkish search aliases
LoiFragola Sep 2, 2026
007ce82
feat: add Turkish setmoney aliases
LoiFragola Sep 2, 2026
37cb023
feat: add Turkish shop aliases
LoiFragola Sep 2, 2026
40aad85
feat: add Turkish transfer aliases
LoiFragola Sep 2, 2026
86a8137
feat: add Turkish weekly aliases
LoiFragola Sep 2, 2026
4a78225
feat: add Turkish work aliases
LoiFragola Sep 2, 2026
964e5ac
chore: add gitignore for dependencies secrets databases and logs
LoiFragola Sep 2, 2026
ba0614d
docs: redesign README with professional hero GIF area and command guide
LoiFragola Sep 2, 2026
75d545a
fix: use clientReady event for discord.js v14
LoiFragola Sep 2, 2026
da4b273
fix: replace deprecated ready event with clientReady
LoiFragola Sep 2, 2026
9da6407
fix: defer slash interactions and safely adapt legacy command handlers
LoiFragola Sep 2, 2026
d9064dc
fix: track slash command responses after deferred replies
LoiFragola Sep 2, 2026
267aef1
fix: edit deferred reply for first slash command response
LoiFragola Sep 2, 2026
460440a
ci: add Node 20 22 and 24 compatibility checks
LoiFragola Sep 2, 2026
a68aef2
Update README.md
LoiFragola Sep 2, 2026
cdac7d1
Update README.md
LoiFragola Sep 2, 2026
e02a64f
Update README.md
LoiFragola Sep 2, 2026
242c9d9
Update README.md
LoiFragola Sep 2, 2026
aa380fc
Update README.md
LoiFragola Sep 2, 2026
a71b35a
Update README.md
LoiFragola Sep 2, 2026
8dbba04
Update README.md
LoiFragola Sep 2, 2026
b4bede1
Update README.md
LoiFragola Sep 2, 2026
ce0c7ff
Update README.md
LoiFragola Sep 2, 2026
35dbe00
Update README.md
LoiFragola Sep 2, 2026
a005fd6
Update README.md
LoiFragola Sep 2, 2026
da40d5b
Update help.js
LoiFragola Sep 2, 2026
6f1f6ef
Fix help command invalid empty URL
LoiFragola Sep 2, 2026
666a71e
Add command and slash command smoke tests
LoiFragola Sep 2, 2026
6c75078
Add automated smoke test script
LoiFragola Sep 2, 2026
343fe9d
Run command smoke tests in CI
LoiFragola Sep 2, 2026
b195f59
Fix CI setup for repository without lockfile
LoiFragola Sep 2, 2026
5da843d
Fix slash command execution adapter
LoiFragola Sep 2, 2026
551ee5a
Fix prefix and slash command system
LoiFragola Sep 2, 2026
603fb3f
Rebuild economy storage layer
LoiFragola Sep 2, 2026
79b1495
Add unified command context
LoiFragola Sep 2, 2026
abf7071
Replace command/event bootstrap with explicit v14 handlers
LoiFragola Sep 2, 2026
ba4b549
Use native slash command execution
LoiFragola Sep 2, 2026
2b178bd
Use unified prefix command context
LoiFragola Sep 2, 2026
7a31284
Add command validation helpers
LoiFragola Sep 2, 2026
b219b4e
Harden SQLite key-value database
LoiFragola Sep 2, 2026
aa2877f
Rebuild economy service with guild-scoped balances
LoiFragola Sep 2, 2026
1999533
Rewrite ping as native slash command
LoiFragola Sep 2, 2026
47063c6
Rewrite balance command natively
LoiFragola Sep 2, 2026
8a1a3d5
Rewrite addmoney command natively
LoiFragola Sep 2, 2026
1925400
Rewrite beg command natively
LoiFragola Sep 2, 2026
2ebba8d
Rewrite daily command natively
LoiFragola Sep 2, 2026
7837cbf
Rewrite work command natively
LoiFragola Sep 2, 2026
234155c
Rewrite weekly command natively
LoiFragola Sep 2, 2026
adbde53
Rewrite shop purchase command natively
LoiFragola Sep 2, 2026
eddcc44
Make item purchases atomic
LoiFragola Sep 2, 2026
d51b123
Rewrite help command natively
LoiFragola Sep 2, 2026
291a430
Rewrite inventory command natively
LoiFragola Sep 2, 2026
bd6438c
Rewrite leaderboard command natively
LoiFragola Sep 2, 2026
1f4b24b
Rewrite shop command natively
LoiFragola Sep 2, 2026
f458570
Rewrite transfer command natively
LoiFragola Sep 2, 2026
2d74432
Rewrite setmoney command natively
LoiFragola Sep 2, 2026
0c99f63
Rewrite prefix command natively
LoiFragola Sep 2, 2026
2b415cd
Rewrite search command natively
LoiFragola Sep 2, 2026
6846b41
Rewrite rob command with atomic economy update
LoiFragola Sep 2, 2026
139a520
Pin SQLite dependency for Node 20 compatibility
LoiFragola Sep 2, 2026
c21a626
Remove duplicate slash command registry
LoiFragola Sep 2, 2026
f64fbd0
Remove token-leaking Discord debug logger
LoiFragola Sep 2, 2026
3e9c0d3
Remove unused duplicate database implementation
LoiFragola Sep 2, 2026
39847f4
Add comprehensive offline test suite
LoiFragola Sep 2, 2026
80b3790
Add guild prefix storage helpers
LoiFragola Sep 2, 2026
132cf6e
Fix slash deployment registry
LoiFragola Sep 2, 2026
9dcf4d8
Rewrite counter to use local database
LoiFragola Sep 2, 2026
b0b6fae
Harden cooldown and leaderboard logic
LoiFragola Sep 2, 2026
369a508
Update CI for rebuilt command architecture
LoiFragola Sep 2, 2026
cfae767
Replace smoke test with full native command suite
LoiFragola Sep 2, 2026
29c1534
Harden bot startup and remove unnecessary privileged intent
LoiFragola Sep 2, 2026
0cad932
Remove obsolete smoke test
LoiFragola Sep 2, 2026
abab619
Remove obsolete database test
LoiFragola Sep 2, 2026
59659c7
Modernize CodeQL workflow
LoiFragola Sep 2, 2026
0bdb312
Make balance mutations atomic
LoiFragola Sep 2, 2026
0b81de0
Update documentation for professional rebuild
LoiFragola Sep 2, 2026
c7a2664
Fix deterministic insufficient-balance test
LoiFragola Sep 2, 2026
36b60e1
Harden local secret and database ignores
LoiFragola Sep 2, 2026
5b9a18c
Fix mock interaction contract
LoiFragola Sep 2, 2026
5f539f5
Fix rob cooldown eligibility flow
LoiFragola Sep 2, 2026
f7ad368
Fix rob response template
LoiFragola Sep 2, 2026
a972848
Fix database lifecycle and closed connection handling
LoiFragola Sep 2, 2026
bc86046
Add English and Turkish localization system
LoiFragola Sep 2, 2026
c49d55b
Refactor command contexts with centralized localization
LoiFragola Sep 2, 2026
421dcf5
Fix admin permission handling and localize utility formatting
LoiFragola Sep 2, 2026
397912d
Fix runtime database lifecycle and centralize config language
LoiFragola Sep 2, 2026
f68de60
Add language and admin role configuration
LoiFragola Sep 2, 2026
42d8824
Localize addmoney and harden admin response
LoiFragola Sep 2, 2026
475f441
Localize balance command
LoiFragola Sep 2, 2026
7f8ca04
Localize beg command
LoiFragola Sep 2, 2026
fcca29d
Localize buy command
LoiFragola Sep 2, 2026
17c1a3e
Localize daily command
LoiFragola Sep 2, 2026
777a6c9
Localize help command
LoiFragola Sep 2, 2026
2f58ce6
Localize inventory command
LoiFragola Sep 2, 2026
c6779d8
Localize leaderboard command
LoiFragola Sep 2, 2026
2f0ea6b
Localize ping command
LoiFragola Sep 2, 2026
0ce4bdf
Localize and harden prefix administration
LoiFragola Sep 2, 2026
79db767
Localize rob command and make cooldown atomic
LoiFragola Sep 2, 2026
dd8a89d
Localize search command
LoiFragola Sep 2, 2026
1157fef
Fix and localize transfer command
LoiFragola Sep 2, 2026
b3138c5
Localize and fix setmoney admin command
LoiFragola Sep 2, 2026
e98d4d8
Localize shop command
LoiFragola Sep 2, 2026
0e7a12c
Localize weekly command
LoiFragola Sep 2, 2026
8b4c8f6
Localize work command
LoiFragola Sep 2, 2026
94a012c
Localize and harden slash interaction error handling
LoiFragola Sep 2, 2026
4204cfc
Localize prefix command error handling
LoiFragola Sep 2, 2026
41a40f9
Make economy manager transactional and dependency-explicit
LoiFragola Sep 2, 2026
9c3d2e0
Eliminate nested transactions in economy service
LoiFragola Sep 2, 2026
fda35e2
Finalize database lifecycle and shop configuration
LoiFragola Sep 2, 2026
5500c06
Make slash deployment use selected language
LoiFragola Sep 2, 2026
479d11d
Expand integration tests for language, permissions, lifecycle, and al…
LoiFragola Sep 2, 2026
94767f9
Harden admin role resolution for slash interactions
LoiFragola Sep 2, 2026
5794ab1
Release professional economy bot 3.1.0
LoiFragola Sep 2, 2026
568eb3d
Make database location independent from process working directory
LoiFragola Sep 2, 2026
e62afff
Fix ping for both slash and prefix transports
LoiFragola Sep 2, 2026
53b38ed
Fix bilingual shop output
LoiFragola Sep 2, 2026
23baa6b
Rewrite README with complete English and Turkish documentation
LoiFragola Sep 2, 2026
8c0f95b
Fix integration test interaction contract and exercise real prefix ev…
LoiFragola Sep 2, 2026
6f5277b
Make optional admin config backward-compatible
LoiFragola Sep 2, 2026
a3a33ff
Fix test admin-role state isolation
LoiFragola Sep 2, 2026
6902e59
Localize counting channel messages
LoiFragola Sep 2, 2026
10fcdc8
Support Discord role arrays and collections in admin checks
LoiFragola Sep 2, 2026
408571b
Add slash role-array permission regression tests
LoiFragola Sep 2, 2026
72a73be
Update shop description to customizable shop
LoiFragola Sep 2, 2026
0dcead9
feat: re-engineer economy into marketplace and inventory platform
LoiFragola Sep 2, 2026
387c47e
Update README.md
LoiFragola Sep 2, 2026
8bc8720
Update README.md
LoiFragola Sep 2, 2026
f41359d
Update README.md
LoiFragola Sep 2, 2026
b525592
Update README.md
LoiFragola Sep 2, 2026
e208fcb
Update README.md
LoiFragola Sep 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 13 additions & 55 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,30 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "main" ]
branches: ["main", "professional-v14-rebuild"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '18 10 * * 4'
- cron: "18 10 * * 4"

jobs:
analyze:
name: Analyze
name: Analyze JavaScript
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
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.

# 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


# Autobuild attempts to build any compiled languages (C/C++, C#, 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@v2

# ℹ️ 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 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.
- name: Repository'i al
uses: actions/checkout@v4

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: CodeQL başlat
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: CodeQL analizi
uses: github/codeql-action/analyze@v3
42 changes: 42 additions & 0 deletions .github/workflows/node-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Node.js Compatibility

on:
push:
branches:
- main
- professional-v14-rebuild
pull_request:
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24]

steps:
- name: Repository'i al
uses: actions/checkout@v4

- name: Node.js ${{ matrix.node-version }} kur
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Bağımlılıkları yükle
run: npm install --no-audit --no-fund

- name: JavaScript sözdizimini kontrol et
shell: bash
run: |
set -euo pipefail
find . -type f -name '*.js' \
-not -path './node_modules/*' \
-print0 | while IFS= read -r -d '' file; do
node --check "$file"
done

- name: Testleri çalıştır
run: npm test
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Dependencies
node_modules/

# Local configuration / secrets
.env
.env.*
!.env.example
botConfig.local.js

# Runtime database and database sidecars
data/
*.db
*.sqlite
*.sqlite3
*.sqlite-wal
*.sqlite-shm
*.db-journal

# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# OS / editor
.DS_Store
Thumbs.db
.vscode/
.idea/

# Temporary files
*.tmp
*.temp
Loading