Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 7b774e3

Browse files
committed
Add help cog, test fixture, and starboard & economy fixes; add tests conftest; run CI fixes
1 parent eb43373 commit 7b774e3

40 files changed

Lines changed: 4468 additions & 4590 deletions

.env.example

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
# Discord Bot Configuration.
2-
DISCORD_TOKEN=your_bot_token_here(I won't share mine 💀💀💀)
3-
GUILD_ID=1263067254153805905 # For faster slash command registration during development
4-
5-
# Database Configuration
6-
DATABASE_URL=sqlite+aiosqlite:///fun2oosh.db # For development
7-
# DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/fun2oosh # For production
8-
9-
# Logging
10-
LOG_LEVEL=INFO
11-
12-
# Owner and Admin
13-
OWNER_ID=1286998001902030908
14-
15-
# Top.gg Integration (optional)
16-
TOPGG_TOKEN=your_topgg_token_here
17-
TOPGG_WEBHOOK_SECRET=your_webhook_secret_here
18-
19-
# Redis for caching (optional)
20-
REDIS_URL=redis://localhost:6379/0
21-
22-
# Game Configuration
23-
MIN_BET=10
24-
MAX_BET=10000
25-
DAILY_WAGER_LIMIT=50000
26-
WORK_REWARD=100
27-
DAILY_REWARD=500
28-
WEEKLY_REWARD=2000
29-
COLLECT_COOLDOWN=3600 # seconds
30-
WORK_COOLDOWN=1800
31-
DAILY_COOLDOWN=86400
32-
WEEKLY_COOLDOWN=604800
1+
# Discord Bot Configuration.
2+
DISCORD_TOKEN=your_bot_token_here(I won't share mine 💀💀💀)
3+
GUILD_ID=1263067254153805905 # For faster slash command registration during development
4+
5+
# Database Configuration
6+
DATABASE_URL=sqlite+aiosqlite:///fun2oosh.db # For development
7+
# DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/fun2oosh # For production
8+
9+
# Logging
10+
LOG_LEVEL=INFO
11+
12+
# Owner and Admin
13+
OWNER_ID=1286998001902030908
14+
15+
# Top.gg Integration (optional)
16+
TOPGG_TOKEN=your_topgg_token_here
17+
TOPGG_WEBHOOK_SECRET=your_webhook_secret_here
18+
19+
# Redis for caching (optional)
20+
REDIS_URL=redis://localhost:6379/0
21+
22+
# Game Configuration
23+
MIN_BET=10
24+
MAX_BET=10000
25+
DAILY_WAGER_LIMIT=50000
26+
WORK_REWARD=100
27+
DAILY_REWARD=500
28+
WEEKLY_REWARD=2000
29+
COLLECT_COOLDOWN=3600 # seconds
30+
WORK_COOLDOWN=1800
31+
DAILY_COOLDOWN=86400
32+
WEEKLY_COOLDOWN=604800

.github/workflows/ci.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
9-
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- uses: actions/checkout@v3
15-
- name: Set up Python
16-
uses: actions/setup-python@v4
17-
with:
18-
python-version: '3.11'
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install -r requirements.txt
23-
- name: Lint with flake8
24-
run: |
25-
pip install flake8
26-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28-
- name: Test with pytest
29-
run: |
30-
pip install pytest pytest-asyncio
31-
pytest
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
- name: Lint with flake8
24+
run: |
25+
pip install flake8
26+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28+
- name: Test with pytest
29+
run: |
30+
pip install pytest pytest-asyncio
31+
pytest

.gitignore

Lines changed: 131 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,131 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
*.egg-info/
24-
.installed.cfg
25-
*.egg
26-
MANIFEST
27-
28-
# PyInstaller
29-
# Usually these files are written by a python script from a template
30-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31-
*.manifest
32-
*.spec
33-
34-
# Installer logs
35-
pip-log.txt
36-
pip-delete-this-directory.txt
37-
38-
# Unit test / coverage reports
39-
htmlcov/
40-
.tox/
41-
.nox/
42-
.coverage
43-
.coverage.*
44-
.cache
45-
nosetests.xml
46-
coverage.xml
47-
*.cover
48-
.hypothesis/
49-
.pytest_cache/
50-
51-
# Translations
52-
*.mo
53-
*.pot
54-
55-
# Django stuff:
56-
*.log
57-
local_settings.py
58-
db.sqlite3
59-
60-
# Flask stuff:
61-
instance/
62-
.webassets-cache
63-
64-
# Scrapy stuff:
65-
.scrapy
66-
67-
# Sphinx documentation
68-
docs/_build/
69-
70-
# PyBuilder
71-
target/
72-
73-
# Jupyter Notebook
74-
.ipynb_checkpoints
75-
76-
# IPython
77-
profile_default/
78-
ipython_config.py
79-
80-
# pyenv
81-
.python-version
82-
83-
# celery beat schedule file
84-
celerybeat-schedule
85-
86-
# SageMath parsed files
87-
*.sage.py
88-
89-
# Environments
90-
.env
91-
.venv
92-
env/
93-
venv/
94-
ENV/
95-
env.bak/
96-
venv.bak/
97-
98-
# Spyder project settings
99-
.spyderproject
100-
.spyproject
101-
102-
# Rope project settings
103-
.ropeproject
104-
105-
# mkdocs documentation
106-
/site
107-
108-
# mypy
109-
.mypy_cache/
110-
.dmypy.json
111-
dmypy.json
112-
113-
# Pyre type checker
114-
.pyre/
115-
116-
# Database files
117-
*.db
118-
*.sqlite
119-
*.sqlite3
120-
121-
# Logs
122-
logs/
123-
*.log
124-
125-
# IDE
126-
.vscode/
127-
.idea/
128-
129-
# OS
130-
.DS_Store
131-
Thumbs.db
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
50+
51+
# Translations
52+
*.mo
53+
*.pot
54+
55+
# Django stuff:
56+
*.log
57+
local_settings.py
58+
db.sqlite3
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# IPython
77+
profile_default/
78+
ipython_config.py
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json
112+
113+
# Pyre type checker
114+
.pyre/
115+
116+
# Database files
117+
*.db
118+
*.sqlite
119+
*.sqlite3
120+
121+
# Logs
122+
logs/
123+
*.log
124+
125+
# IDE
126+
.vscode/
127+
.idea/
128+
129+
# OS
130+
.DS_Store
131+
Thumbs.db

0 commit comments

Comments
 (0)