-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure Pulsars #7
Open
janine9vn
wants to merge
390
commits into
main
Choose a base branch
from
pure-pulsars
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Pure Pulsars #7
Changes from all commits
Commits
Show all changes
390 commits
Select commit
Hold shift + click to select a range
63676ba
Change User: has not been added to User: has not played any games
Koisu-unavailable d34a693
feat(pure-pulsers): :bug: Added Error catching to the commands
DannyTheHeretic 0e19269
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 99b5e0e
h
Koisu-unavailable 0e49671
refactor: :recycle: made never commadn nicer
Koisu-unavailable ac3bd94
changed h to never
Koisu-unavailable aa6abd7
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
Koisu-unavailable 1b0fb41
chore: :recycle: ruff check
Koisu-unavailable dbd3a64
feat(pure-pulsers): :sparkles: Added the help command
DannyTheHeretic 210e480
feat(wiki-guesser): :construction: Initial commit of GiveUpButton
teald 3acfc44
feat(wiki-guesser): :construction: Return explicityly in GiveUpbutton…
teald c4bf2d9
chore: :lock: Add secrets dir to .gitignore
teald f401760
feat(wiki-guesser): :construction: Send message with answer when givi…
teald d55453e
feat(wiki-guesser): :sparkles: Removes buttons when "give up button" …
teald d7ac01d
feat(bot): :sparkles: Use discord logger as root logging handler.
teald ddc543c
perf(wiki-guesser): :art: Change wording to match a list comprehensio…
teald a7e115f
chore(wiki-guesser): :bulb: Removing completed TODO
teald 0ac5ef9
chore(wiki-guesser): :bulb: Update TODO
teald d9f109b
chore(wiki-guesser): :loud_sound: Change exit log from DEBUG to INFO …
teald 903c602
Merge pull request #1 from DannyTheHeretic/feature/give_up_button
DannyTheHeretic fe6898c
Switched to logging instead of print.
DannyTheHeretic e9171c6
feat(pure-pulsers): :sparkles: Added commands.bot and sync
DannyTheHeretic 7b04fdf
Added embed to skip, removed sync
DannyTheHeretic 37b24d7
Remove the noqa from most of the file
DannyTheHeretic b547974
feat(pure-pulsers): :sparkles: Added back sync
DannyTheHeretic eee427c
added a one run sync
DannyTheHeretic 4528a63
fix(pure-pulsers): :zap: Added sync on guild join. as well as some lo…
DannyTheHeretic e797161
feat(pure-pulsers): :heavy_plus_sign: Added humanize requirment
DannyTheHeretic 09d8bd0
refactor(pure-pulsers): :art: Added the Humanize function.
DannyTheHeretic 6d935c2
feat(pure-pulsers): :art: Sync is working and also on_join.
DannyTheHeretic bf8c0cc
feat(pure-pulsers): :art: added niceties
DannyTheHeretic 0e969a2
refactor(pure-pulsers): :art: made help_bot ephemeral
DannyTheHeretic d69c2ea
feat(pure-pulsers): :bug: KeyError with rand_wiki
DannyTheHeretic 8a2ecb2
fix(pure-pulsers): :bug: Awaiting rand_wiki in the recurrsion
DannyTheHeretic 1f7940f
feat: :sparkles: adding multiplayer
Koisu-unavailable a75d31d
perf: :zap: Links for wiki-guesser limited to improve perf
WONG-TONG48 6cf6f08
refactor: :construction: abstracted some parts of wikiguesser
Koisu-unavailable 2205c8b
refactor(pure-pulsers): :art: Changed from logging info to logging cr…
DannyTheHeretic 983113d
fix(pure-pulsers): :bug: fixed followup instead of respond in sync
DannyTheHeretic e0e584f
Added my shutdown command to main, only if on the server
DannyTheHeretic 76137a5
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable 3088aa9
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable ed8e89b
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable 1550e97
fix bug
Koisu-unavailable 5d0fcdc
Merge branch 'main' into multiplyaer-wikiguesser
DannyTheHeretic b114ecc
Merge pull request #2 from DannyTheHeretic/multiplyaer-wikiguesser
DannyTheHeretic 23e6187
first run syntax
DannyTheHeretic 159d142
fixed docstring
Koisu-unavailable 30ee3f6
Patching the merge up.
DannyTheHeretic 355f240
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 2e08440
fix(pure-pulsers): :twisted_rightwards_arrows: Patching merge v2
DannyTheHeretic 594230e
fix: Reformat and fix a bug
DannyTheHeretic 8c3f3b5
feat: Added a more comprehensive rick roll.
DannyTheHeretic a267564
style: sort import statements
spenpal 7caea7f
feat: add rabbit hole slash command to client tree
spenpal 5057ab3
chore(pure-pulsers): :memo: Added config.env for ease of use
DannyTheHeretic 66472d6
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 44fb873
wikiguesser bug fix?
DannyTheHeretic cdfb417
fixed wikiguesser
DannyTheHeretic 055311f
docs: sign license
Gobleizer 3a379b0
refactor(wiki-wabbit): :art: Refactored the code to be more consitent…
DannyTheHeretic 52b8d83
refactor(wiki-wabbit): :art: Updating code for ruff linting.
DannyTheHeretic d95a871
refactor(wiki-wabbit): :art: Cleaned all noqa in the repo
DannyTheHeretic 09022a3
lil fix
DannyTheHeretic 36d8ad5
Updated the docstring to be more thorough.
DannyTheHeretic 6aea446
feat(wiki-wabbit): :art: Added param descriptors to the commands
DannyTheHeretic bfdd9c0
feat: :construction: sets up basic interaction flow
Gobleizer 9cbd5b8
a
DannyTheHeretic 6853f78
docs(wiki-wabbit): :pushpin: Ran pip freeze
DannyTheHeretic 9591fce
docs(pure-pulsers): :art: Added poetry to the toml as well as poetry …
DannyTheHeretic 72f66ed
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 58fec6e
Update LICENSE.txt with lotus.css
Koisu-unavailable f6f6551
fix(wiki-wabbit): :rotating_light: actually fixing the noqa
DannyTheHeretic 4cdf3bd
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 0f82d12
feat: :construction: Adds wikiutil to create image type embeds
Gobleizer 0e5557a
docs: sign license
Gobleizer 15aced7
feat: :construction: Create initial classes for wiki-categories
teald a156fc9
test: :white_check_mark: add noxfile with dev shell setup and unit te…
teald 92e2b6b
feat(bot): :construction: Add WikiArticleGenerator class to consolida…
teald d2cd2de
chore: :art: Remove noxfile
teald 8d3d94b
feat(wiki-guesser): :construction: Add initial fetching behavior, tests.
teald 33c1ac5
feat: :construction: Add pytest-asyncio, add page generation workflow.
teald 10f0cad
test 🧪: Add src/__init__.py with comment about testing, so pytest run…
teald 5108297
feat: :bug: Fix category and title searches.
teald 3e6a156
test: :white_check_mark: Add pytest and pytest-asyncio dependencies t…
teald 5f874cc
feat: :sparkles: Enable multiple category/title handling
teald 00d55ca
feat: 🐛 fix issue with fetching a known title from a category it belo…
teald b4e75f6
feat: ✨ add async generator behavior.
teald f9332dd
lint: 🧹 handle linting/formatting across files.
teald fb62575
Merge pull request #4 from DannyTheHeretic/feature/wiki_categories
DannyTheHeretic 63414b2
refactor(pure-pulsers): :art: Made the code nicer.
DannyTheHeretic feb81bc
lil bug made
DannyTheHeretic 0f64ee1
feat(wiki-wabbit): :bricks: Added Docker and some scalable changes.
DannyTheHeretic 848a22a
refactor(wiki-wabbit): :art: Added a proper User Agent -> Also froze …
DannyTheHeretic 14c2f93
style(wiki-wabbit): :rotating_light: Added new lines at the eof and c…
DannyTheHeretic 69d2d4e
linting? maybe?
DannyTheHeretic 69d0d7b
linting. pls work
DannyTheHeretic 7738b2c
docs: :egg: add webpage to represent project
Gobleizer d28d44a
Merge pull request #5 from DannyTheHeretic/feature/webpage
DannyTheHeretic 7fe1152
feat(pure-pulsers): :rocket: Deployed the website and a boilerplate t…
DannyTheHeretic debb302
Testing autodeploy
DannyTheHeretic 34b48cd
testing 2
DannyTheHeretic c20be1e
refactor: :fire: function from old wikipedia api removed
WONG-TONG48 caa63da
style: :art: comments and docstrings added to main.py
WONG-TONG48 9c419a7
feat: grab random popular wiki article
spenpal 5dde773
Merge pull request #6 from DannyTheHeretic/main
spenpal 1090fed
chore: remove null char
spenpal 08ba7e1
refactor(pure-pulsers): :bug: on_loss_update.
DannyTheHeretic b50e1a5
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 2a7bc30
feat: Break out Guess interaction flow to be game independent
Gobleizer 0950a81
feat(pure-pulsers): :art: Added banner and logo loading on start.
DannyTheHeretic de2d2bf
lil boi
DannyTheHeretic 039d676
merge: adds category article retrieval
Gobleizer e2e7f14
docs: :bento: Add logos/banners.
teald 0f93f7e
docs: :truck: Move banner assets to appropriate directory.
teald 369b97b
docs: :truck: Move assets to webpage to keep images together.
teald cb54515
docs: :bento: Use dark mode version of banner on website.
teald dfcd4ba
docs: :bug: Use png to avoid glyph issues.
teald d7ca4bd
docs: :sparkles: Light/dark mode handling.
teald c868eed
docs: :bug: Fix dark mode selection issue.
teald d09469f
docs: :bug: Add figure tags.
teald 6a7a286
docs: :bug: Center image and set max width.
teald 4889667
docs: :sparkles: Add banner to README
teald 4ec0669
Merge pull request #7 from DannyTheHeretic/feature/wikianimal
DannyTheHeretic 28bb644
feat(pure-pulsers): :goal_net: Added error catching and some cleaning…
DannyTheHeretic 781fdc5
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 7aa6040
Fixing the requirements.txt
DannyTheHeretic de72970
chore: remove redundant file
spenpal fb241e7
Delete webpage directory
DannyTheHeretic d689bdd
feat: ignore throttle.ctrl file
spenpal 35d0193
chore: add gemini api key
spenpal c5dc48b
feat: complete mvp of this command
spenpal 260a8f4
Merge branch 'main' into feature/rabbit-hole
DannyTheHeretic 48225cc
Merge pull request #8 from DannyTheHeretic/feature/rabbit-hole
DannyTheHeretic e31d2c2
docs(pure-pulsers): :pushpin: added added new requirements
DannyTheHeretic e90a515
refactor(utils): :recycle: Move body of `rand_wiki` into `ArticleGene…
teald 337efc4
test(utils): :white_check_mark: Add test for getting an article's cat…
teald 8883452
chore(utils): :bulb: Remove comleted todo.
teald 435b223
WIP
teald 79b0485
perf(utils): :zap: Slight performance boost to categories, otherwise …
teald 1241937
chore: :bulb: Remove todos
teald 1d1fc2f
style: :art: Remove (hopefully) spurious whitespace
teald cfef146
fix(pure-pulsers): :bug: Remove the wikipedia logo from the embed if …
DannyTheHeretic bfcb88e
docs: :memo: Add banners/logos, update README to have features and te…
teald 2636bac
docs: 🐛Update README.md --- table fix
teald 1be5b73
docs: 🧹Add `rabbit-hole` and `help` slash commands
teald 25b0d83
docs: 🐛 Fix typo in README
teald d8b8c3f
docs(wiki-guesser): ✍️ writing module docstring.
teald 5e689e4
docs(wiki-guesser): ✍<fe0f> writing command docstring.
teald 82dd7c0
docs(bot): ✍️ Add docstrings in help command source.
teald 9753239
docs(bot): ✍️ Add docstrings in leaderboard command source.
teald 7f5d082
docs(bot): ✍️ Add docstrings in never command source.
teald 41fac73
docs(bot): 🧹 standardize function docstrings a bit, correct them
teald 4a8c154
docs(bot): ✍️ Minor docstring edits in rabbit-hole command source.
teald b5dbd32
docs(bot): ✍️ Add docstrings in reset-scorescommand source.
teald 5a4fe38
docs(bot): ✍️ Add docstrings in sync command source.
teald 6dd2155
docs(bot): ✍️ Add docstrings in user-infocommand source.
teald 3df377f
docs(bot): ✍️ Add docstrings in wikiguesser class source.
teald e4c7e3e
docs(bot): ✍️ Add docstrings in .
teald 2192e41
docs(bot): ✍️ Add docstrings in wikiguesser source.
teald c24d5ae
fix(utils): :bug: Remove absolute import -- was for testing.
teald 64465fe
docs(wiki-guesser): :art: Minor tweak with a line break
teald 5325521
docs(bot): ✍️ Add docstrings in wiki-random source.
teald ce4f8e8
docs(bot): ✍️ Add docstrings in wiki-search source.
teald 0ab52a5
docs(bot): ✍️ Slightly modify and add some docstrings in database cor…
teald dc58827
docs(bot): ✍️ Slightly modify and add some docstrings in database use…
teald 8c49c29
docs(bot): ✍️ Slightly modify and add some docstrings in main bot sou…
teald f35174b
docs(bot): ✍️ Slightly modify and add some docstrings in wikiutils so…
teald f0a7644
refactor(pure-pulsers): :goal_net: Added some error handling just in …
DannyTheHeretic 112723e
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 640b4a2
feat: retrieves animal and finds a valid weight range
Gobleizer afb098d
Merge branch 'main' into feature/wikianimal
Gobleizer 953bd3d
feat: check win loss conditions for animal weights
Gobleizer cc72443
chore: refactor to shared give up button
Gobleizer c85e87b
Merge pull request #10 from DannyTheHeretic/feature/wikianimal
Gobleizer 51adb88
fix(pure-pulsers): :bug: Remove the heartbeat, @ the correct user
DannyTheHeretic 77d6f10
bugfix: remove buttons when game is won
Gobleizer b0ea6fb
Merge: Fix wiki animal bug
Gobleizer c660b15
Merge pull request #11 from DannyTheHeretic/feature/wikianimal
Gobleizer 401b18a
refactor(pure-pulsers): :rocket: Final Version. This is the end.
DannyTheHeretic 4849e8f
feat(pure-pulsers): :zap: Speed
DannyTheHeretic 2b9d780
rmd the shutdown
DannyTheHeretic 35969cd
feat(pure-pulsers): :sparkles: Everything is done.
DannyTheHeretic 4974ef0
Update rabbit_hole.py
DannyTheHeretic 6f6eba8
feat: add exception handling for api rate limits
spenpal c852346
Doc update
DannyTheHeretic 8f9eac6
Docs update
DannyTheHeretic 02297dd
docs(pure-pulsers): :memo: Added an install Guide.
DannyTheHeretic 5a86200
Typo
DannyTheHeretic 4341526
docs: Final README.
DannyTheHeretic 5e280ed
docs(README): 🧹 minor spelling, grammar edits.
teald d081832
docs(README): 🧹 listify env vars, add links to relevant sections
teald 05c66fe
docs(README): 🧹 Initial paragraph clarifying .env file is used
teald 2610c04
docs(README): 🧹 Add `git clone` detail, mostly for copy-paste
teald 619ec08
docs(README): 🧹 Clarify where on the page bot is.
teald 1da3b59
docs(README): 🧹 Clarify firebase instructions, grammar edits
teald f62452b
docs(README): ⚠️ Add warning about needing to specify the project.
teald 32794d8
docs(README): 🧹 Link to main page
teald d2b3372
docs(README): 🧹 Add section header to highlight renaming step more cl…
teald d10a6d9
docs(README): 🧹 Fix final instances of gemma
teald 8ee0fda
docs: :fire: removed useless half sentance
WONG-TONG48 54763e0
docs: :art: adjusted hyperlink
WONG-TONG48 b934bde
docs: website link added to README
WONG-TONG48 82f3681
Update README.md
WONG-TONG48 e2843d2
docs(README): clarify installation instruction
teald dac5e33
docs(README): Initial contributions section
teald 59b1a0e
Add files via upload
DannyTheHeretic ed82ed4
docs(README): Add teald contribution
teald e2e3ff0
docs(README): add logo work to teald entry
teald 450946d
adding the command gifs to the github
DannyTheHeretic d281e0a
docs(README): Add connection to the theme section and initial text
teald cf2061f
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic 2fab1d9
docs(README): :rotating_light: Add trailing whitespace for linter
teald c138228
gif added
WONG-TONG48 ac2206c
Update README.md
DannyTheHeretic d9a238e
Update README.md
DannyTheHeretic d159198
Update README.md
DannyTheHeretic 345fd40
Update README.md
DannyTheHeretic face837
Update README.md
DannyTheHeretic 9093e43
Update README.md
DannyTheHeretic b39a4b8
Update README.md
DannyTheHeretic eb4db37
Update README.md
WONG-TONG48 494f65e
Update README.md
DannyTheHeretic 7753001
Update README.md
DannyTheHeretic 4dec9b1
Update README.md
DannyTheHeretic 74fb68e
Update README.md
DannyTheHeretic 52f73a1
Update README.md
DannyTheHeretic d842e66
Update README.md
DannyTheHeretic 7db38fc
Update README.md
DannyTheHeretic 849faa8
Update README.md
DannyTheHeretic 1b1a09e
Update README.md
DannyTheHeretic 498c46f
Update README.md
DannyTheHeretic 12d485f
Update README.md
DannyTheHeretic 82d6b83
Update README.md
DannyTheHeretic e9608fe
Update README.md
DannyTheHeretic ad8c6ec
rename a file for docs
DannyTheHeretic febbafc
Update README.md
DannyTheHeretic 8c18e45
Update README.md
DannyTheHeretic 0abe572
Update README.md
DannyTheHeretic 8873d97
Update README.md
DannyTheHeretic 991c70c
Update README.md
DannyTheHeretic ad1172b
Update README.md
DannyTheHeretic a3de14c
Update README.md
spenpal 2917765
docs(README): Fix website link, add text descriptions
Gobleizer ca1ecde
docs(README): completes text descriptions of app behavior
Gobleizer d73a121
Update README.md
Gobleizer 71ddd9b
Update README.md
WONG-TONG48 819147c
Update README.md
DannyTheHeretic accfefc
Update README.md
DannyTheHeretic c0fb629
Add 'pure-pulsars/' from commit 'accfefcbf1dcb3b60c412dbee6b6aa295c99…
janine9vn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,16 @@ | ||
__pycache__ | ||
.github | ||
.ruff_cache | ||
tests | ||
docs | ||
.vscode | ||
.venv | ||
|
||
Pipfile | ||
poetry.lock | ||
code-jam-11.code-workspace | ||
config.env | ||
.gitignore | ||
.pre-commit-config.yaml | ||
pyproject.toml | ||
requirements-dev.txt |
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,35 @@ | ||
# GitHub Action workflow enforcing our code style. | ||
|
||
name: Lint | ||
|
||
# Trigger the workflow on both push (to the main repository, on the main branch) | ||
# and pull requests (against the main repository, but from any repo, from any branch). | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
# Brand new concurrency setting! This ensures that not more than one run can be triggered for the same commit. | ||
# It is useful for pull requests coming from the main repository since both triggers will match. | ||
concurrency: lint-${{ github.sha }} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
# The Python version your project uses. Feel free to change this if required. | ||
PYTHON_VERSION: "3.12" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Run pre-commit hooks | ||
uses: pre-commit/[email protected] |
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,115 @@ | ||
# Files generated by the interpreter | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# Environment specific | ||
.venv | ||
venv | ||
.env | ||
env | ||
|
||
# Unittest reports | ||
.coverage* | ||
|
||
# Logs | ||
*.log | ||
|
||
# PyEnv version selector | ||
.python-version | ||
|
||
#api chache | ||
apicache | ||
|
||
# Built objects | ||
*.so | ||
dist/ | ||
build/ | ||
|
||
# IDEs | ||
# PyCharm | ||
.idea/ | ||
# VSCode | ||
.vscode/ | ||
# MacOS | ||
.DS_Store | ||
test_wiki_rand.py | ||
*firebase-adminsdk*.json | ||
code-jam-11.code-workspace | ||
src/cmds/shutdown.py | ||
|
||
# Secrets! | ||
secrets/ | ||
src/test.py | ||
|
||
docker.env | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
firebase-debug.log* | ||
firebase-debug.*.log* | ||
|
||
# Firebase cache | ||
.firebase/ | ||
|
||
# Firebase config | ||
|
||
# Uncomment this if you'd like others to create their own Firebase project. | ||
# For a team working on the same Firebase project(s), it is recommended to leave | ||
# it commented so all members can deploy to the same project(s) in .firebaserc. | ||
# .firebaserc | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# Other | ||
*throttle.ctrl* | ||
docker.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Pre-commit configuration. | ||
# See https://github.com/python-discord/code-jam-template/tree/main#pre-commit-run-linting-before-committing | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.5.0 | ||
hooks: | ||
- id: ruff | ||
- id: ruff-format |
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,13 @@ | ||
FROM python:3.12.4-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
COPY . . | ||
|
||
RUN "ls" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is |
||
|
||
CMD ["python", "src/main.py"] |
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,7 @@ | ||
Copyright 2021 theheretic_ WONG-TONG48 teald spenpal lotus.css Xanthian | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,22 @@ | ||
# Sample Pipfile. | ||
|
||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
humanize = "~4.10.0" | ||
fake-useragent = "~1.5.1" | ||
aiohttp = "~3.9.5" | ||
pywikibot = "~9.2.1" | ||
"discord.py" = "~2.4.0" | ||
firebase-admin = "~6.5.0" | ||
python-dotenv = "~1.0.1" | ||
|
||
[dev-packages] | ||
ruff = "~=0.5.0" | ||
pre-commit = "~=3.7.1" | ||
|
||
[requires] | ||
python_version = "3.12" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move the
COPY . .
part here and remove this line?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this seems to be the correct approach due to how the layers work with building a container.