Skip to content
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
wants to merge 390 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 Jul 21, 2024
d34a693
feat(pure-pulsers): :bug: Added Error catching to the commands
DannyTheHeretic Jul 21, 2024
0e19269
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 21, 2024
99b5e0e
h
Koisu-unavailable Jul 21, 2024
0e49671
refactor: :recycle: made never commadn nicer
Koisu-unavailable Jul 21, 2024
ac3bd94
changed h to never
Koisu-unavailable Jul 21, 2024
aa6abd7
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
Koisu-unavailable Jul 21, 2024
1b0fb41
chore: :recycle: ruff check
Koisu-unavailable Jul 21, 2024
dbd3a64
feat(pure-pulsers): :sparkles: Added the help command
DannyTheHeretic Jul 21, 2024
210e480
feat(wiki-guesser): :construction: Initial commit of GiveUpButton
teald Jul 21, 2024
3acfc44
feat(wiki-guesser): :construction: Return explicityly in GiveUpbutton…
teald Jul 21, 2024
c4bf2d9
chore: :lock: Add secrets dir to .gitignore
teald Jul 21, 2024
f401760
feat(wiki-guesser): :construction: Send message with answer when givi…
teald Jul 22, 2024
d55453e
feat(wiki-guesser): :sparkles: Removes buttons when "give up button" …
teald Jul 22, 2024
d7ac01d
feat(bot): :sparkles: Use discord logger as root logging handler.
teald Jul 22, 2024
ddc543c
perf(wiki-guesser): :art: Change wording to match a list comprehensio…
teald Jul 22, 2024
a7e115f
chore(wiki-guesser): :bulb: Removing completed TODO
teald Jul 22, 2024
0ac5ef9
chore(wiki-guesser): :bulb: Update TODO
teald Jul 22, 2024
d9f109b
chore(wiki-guesser): :loud_sound: Change exit log from DEBUG to INFO …
teald Jul 22, 2024
903c602
Merge pull request #1 from DannyTheHeretic/feature/give_up_button
DannyTheHeretic Jul 22, 2024
fe6898c
Switched to logging instead of print.
DannyTheHeretic Jul 22, 2024
e9171c6
feat(pure-pulsers): :sparkles: Added commands.bot and sync
DannyTheHeretic Jul 22, 2024
7b04fdf
Added embed to skip, removed sync
DannyTheHeretic Jul 22, 2024
37b24d7
Remove the noqa from most of the file
DannyTheHeretic Jul 22, 2024
b547974
feat(pure-pulsers): :sparkles: Added back sync
DannyTheHeretic Jul 22, 2024
eee427c
added a one run sync
DannyTheHeretic Jul 22, 2024
4528a63
fix(pure-pulsers): :zap: Added sync on guild join. as well as some lo…
DannyTheHeretic Jul 22, 2024
e797161
feat(pure-pulsers): :heavy_plus_sign: Added humanize requirment
DannyTheHeretic Jul 22, 2024
09d8bd0
refactor(pure-pulsers): :art: Added the Humanize function.
DannyTheHeretic Jul 22, 2024
6d935c2
feat(pure-pulsers): :art: Sync is working and also on_join.
DannyTheHeretic Jul 22, 2024
bf8c0cc
feat(pure-pulsers): :art: added niceties
DannyTheHeretic Jul 22, 2024
0e969a2
refactor(pure-pulsers): :art: made help_bot ephemeral
DannyTheHeretic Jul 22, 2024
d69c2ea
feat(pure-pulsers): :bug: KeyError with rand_wiki
DannyTheHeretic Jul 22, 2024
8a2ecb2
fix(pure-pulsers): :bug: Awaiting rand_wiki in the recurrsion
DannyTheHeretic Jul 22, 2024
1f7940f
feat: :sparkles: adding multiplayer
Koisu-unavailable Jul 22, 2024
a75d31d
perf: :zap: Links for wiki-guesser limited to improve perf
WONG-TONG48 Jul 22, 2024
6cf6f08
refactor: :construction: abstracted some parts of wikiguesser
Koisu-unavailable Jul 23, 2024
2205c8b
refactor(pure-pulsers): :art: Changed from logging info to logging cr…
DannyTheHeretic Jul 23, 2024
983113d
fix(pure-pulsers): :bug: fixed followup instead of respond in sync
DannyTheHeretic Jul 23, 2024
e0e584f
Added my shutdown command to main, only if on the server
DannyTheHeretic Jul 23, 2024
76137a5
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable Jul 23, 2024
3088aa9
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable Jul 23, 2024
ed8e89b
refactor: :recycle: FInish abstracting the parts of wikiguesser.py
Koisu-unavailable Jul 23, 2024
1550e97
fix bug
Koisu-unavailable Jul 23, 2024
5d0fcdc
Merge branch 'main' into multiplyaer-wikiguesser
DannyTheHeretic Jul 24, 2024
b114ecc
Merge pull request #2 from DannyTheHeretic/multiplyaer-wikiguesser
DannyTheHeretic Jul 24, 2024
23e6187
first run syntax
DannyTheHeretic Jul 24, 2024
159d142
fixed docstring
Koisu-unavailable Jul 24, 2024
30ee3f6
Patching the merge up.
DannyTheHeretic Jul 24, 2024
355f240
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 24, 2024
2e08440
fix(pure-pulsers): :twisted_rightwards_arrows: Patching merge v2
DannyTheHeretic Jul 24, 2024
594230e
fix: Reformat and fix a bug
DannyTheHeretic Jul 24, 2024
8c3f3b5
feat: Added a more comprehensive rick roll.
DannyTheHeretic Jul 24, 2024
a267564
style: sort import statements
spenpal Jul 24, 2024
7caea7f
feat: add rabbit hole slash command to client tree
spenpal Jul 24, 2024
5057ab3
chore(pure-pulsers): :memo: Added config.env for ease of use
DannyTheHeretic Jul 24, 2024
66472d6
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 24, 2024
44fb873
wikiguesser bug fix?
DannyTheHeretic Jul 24, 2024
cdfb417
fixed wikiguesser
DannyTheHeretic Jul 24, 2024
055311f
docs: sign license
Gobleizer Jul 22, 2024
3a379b0
refactor(wiki-wabbit): :art: Refactored the code to be more consitent…
DannyTheHeretic Jul 24, 2024
52b8d83
refactor(wiki-wabbit): :art: Updating code for ruff linting.
DannyTheHeretic Jul 24, 2024
d95a871
refactor(wiki-wabbit): :art: Cleaned all noqa in the repo
DannyTheHeretic Jul 24, 2024
09022a3
lil fix
DannyTheHeretic Jul 24, 2024
36d8ad5
Updated the docstring to be more thorough.
DannyTheHeretic Jul 24, 2024
6aea446
feat(wiki-wabbit): :art: Added param descriptors to the commands
DannyTheHeretic Jul 24, 2024
bfdd9c0
feat: :construction: sets up basic interaction flow
Gobleizer Jul 24, 2024
9cbd5b8
a
DannyTheHeretic Jul 24, 2024
6853f78
docs(wiki-wabbit): :pushpin: Ran pip freeze
DannyTheHeretic Jul 24, 2024
9591fce
docs(pure-pulsers): :art: Added poetry to the toml as well as poetry …
DannyTheHeretic Jul 24, 2024
72f66ed
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 24, 2024
58fec6e
Update LICENSE.txt with lotus.css
Koisu-unavailable Jul 24, 2024
f6f6551
fix(wiki-wabbit): :rotating_light: actually fixing the noqa
DannyTheHeretic Jul 24, 2024
4cdf3bd
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 24, 2024
0f82d12
feat: :construction: Adds wikiutil to create image type embeds
Gobleizer Jul 25, 2024
0e5557a
docs: sign license
Gobleizer Jul 22, 2024
15aced7
feat: :construction: Create initial classes for wiki-categories
teald Jul 23, 2024
a156fc9
test: :white_check_mark: add noxfile with dev shell setup and unit te…
teald Jul 23, 2024
92e2b6b
feat(bot): :construction: Add WikiArticleGenerator class to consolida…
teald Jul 24, 2024
d2cd2de
chore: :art: Remove noxfile
teald Jul 24, 2024
8d3d94b
feat(wiki-guesser): :construction: Add initial fetching behavior, tests.
teald Jul 24, 2024
33c1ac5
feat: :construction: Add pytest-asyncio, add page generation workflow.
teald Jul 24, 2024
10f0cad
test 🧪: Add src/__init__.py with comment about testing, so pytest run…
teald Jul 25, 2024
5108297
feat: :bug: Fix category and title searches.
teald Jul 25, 2024
3e6a156
test: :white_check_mark: Add pytest and pytest-asyncio dependencies t…
teald Jul 25, 2024
5f874cc
feat: :sparkles: Enable multiple category/title handling
teald Jul 25, 2024
00d55ca
feat: 🐛 fix issue with fetching a known title from a category it belo…
teald Jul 25, 2024
b4e75f6
feat: ✨ add async generator behavior.
teald Jul 25, 2024
f9332dd
lint: 🧹 handle linting/formatting across files.
teald Jul 25, 2024
fb62575
Merge pull request #4 from DannyTheHeretic/feature/wiki_categories
DannyTheHeretic Jul 25, 2024
63414b2
refactor(pure-pulsers): :art: Made the code nicer.
DannyTheHeretic Jul 25, 2024
feb81bc
lil bug made
DannyTheHeretic Jul 25, 2024
0f64ee1
feat(wiki-wabbit): :bricks: Added Docker and some scalable changes.
DannyTheHeretic Jul 26, 2024
848a22a
refactor(wiki-wabbit): :art: Added a proper User Agent -> Also froze …
DannyTheHeretic Jul 26, 2024
14c2f93
style(wiki-wabbit): :rotating_light: Added new lines at the eof and c…
DannyTheHeretic Jul 26, 2024
69d2d4e
linting? maybe?
DannyTheHeretic Jul 26, 2024
69d0d7b
linting. pls work
DannyTheHeretic Jul 26, 2024
7738b2c
docs: :egg: add webpage to represent project
Gobleizer Jul 26, 2024
d28d44a
Merge pull request #5 from DannyTheHeretic/feature/webpage
DannyTheHeretic Jul 26, 2024
7fe1152
feat(pure-pulsers): :rocket: Deployed the website and a boilerplate t…
DannyTheHeretic Jul 26, 2024
debb302
Testing autodeploy
DannyTheHeretic Jul 26, 2024
34b48cd
testing 2
DannyTheHeretic Jul 26, 2024
c20be1e
refactor: :fire: function from old wikipedia api removed
WONG-TONG48 Jul 26, 2024
caa63da
style: :art: comments and docstrings added to main.py
WONG-TONG48 Jul 26, 2024
9c419a7
feat: grab random popular wiki article
spenpal Jul 27, 2024
5dde773
Merge pull request #6 from DannyTheHeretic/main
spenpal Jul 27, 2024
1090fed
chore: remove null char
spenpal Jul 27, 2024
08ba7e1
refactor(pure-pulsers): :bug: on_loss_update.
DannyTheHeretic Jul 27, 2024
b50e1a5
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 27, 2024
2a7bc30
feat: Break out Guess interaction flow to be game independent
Gobleizer Jul 27, 2024
0950a81
feat(pure-pulsers): :art: Added banner and logo loading on start.
DannyTheHeretic Jul 27, 2024
de2d2bf
lil boi
DannyTheHeretic Jul 27, 2024
039d676
merge: adds category article retrieval
Gobleizer Jul 27, 2024
e2e7f14
docs: :bento: Add logos/banners.
teald Jul 27, 2024
0f93f7e
docs: :truck: Move banner assets to appropriate directory.
teald Jul 27, 2024
369b97b
docs: :truck: Move assets to webpage to keep images together.
teald Jul 27, 2024
cb54515
docs: :bento: Use dark mode version of banner on website.
teald Jul 27, 2024
dfcd4ba
docs: :bug: Use png to avoid glyph issues.
teald Jul 27, 2024
d7ca4bd
docs: :sparkles: Light/dark mode handling.
teald Jul 27, 2024
c868eed
docs: :bug: Fix dark mode selection issue.
teald Jul 27, 2024
d09469f
docs: :bug: Add figure tags.
teald Jul 27, 2024
6a7a286
docs: :bug: Center image and set max width.
teald Jul 27, 2024
4889667
docs: :sparkles: Add banner to README
teald Jul 27, 2024
4ec0669
Merge pull request #7 from DannyTheHeretic/feature/wikianimal
DannyTheHeretic Jul 27, 2024
28bb644
feat(pure-pulsers): :goal_net: Added error catching and some cleaning…
DannyTheHeretic Jul 28, 2024
781fdc5
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 28, 2024
7aa6040
Fixing the requirements.txt
DannyTheHeretic Jul 28, 2024
de72970
chore: remove redundant file
spenpal Jul 28, 2024
fb241e7
Delete webpage directory
DannyTheHeretic Jul 28, 2024
d689bdd
feat: ignore throttle.ctrl file
spenpal Jul 28, 2024
35d0193
chore: add gemini api key
spenpal Jul 28, 2024
c5dc48b
feat: complete mvp of this command
spenpal Jul 28, 2024
260a8f4
Merge branch 'main' into feature/rabbit-hole
DannyTheHeretic Jul 28, 2024
48225cc
Merge pull request #8 from DannyTheHeretic/feature/rabbit-hole
DannyTheHeretic Jul 28, 2024
e31d2c2
docs(pure-pulsers): :pushpin: added added new requirements
DannyTheHeretic Jul 28, 2024
e90a515
refactor(utils): :recycle: Move body of `rand_wiki` into `ArticleGene…
teald Jul 26, 2024
337efc4
test(utils): :white_check_mark: Add test for getting an article's cat…
teald Jul 26, 2024
8883452
chore(utils): :bulb: Remove comleted todo.
teald Jul 27, 2024
435b223
WIP
teald Jul 27, 2024
79b0485
perf(utils): :zap: Slight performance boost to categories, otherwise …
teald Jul 28, 2024
1241937
chore: :bulb: Remove todos
teald Jul 28, 2024
1d1fc2f
style: :art: Remove (hopefully) spurious whitespace
teald Jul 28, 2024
cfef146
fix(pure-pulsers): :bug: Remove the wikipedia logo from the embed if …
DannyTheHeretic Jul 28, 2024
bfcb88e
docs: :memo: Add banners/logos, update README to have features and te…
teald Jul 28, 2024
2636bac
docs: 🐛Update README.md --- table fix
teald Jul 28, 2024
1be5b73
docs: 🧹Add `rabbit-hole` and `help` slash commands
teald Jul 28, 2024
25b0d83
docs: 🐛 Fix typo in README
teald Jul 28, 2024
d8b8c3f
docs(wiki-guesser): ✍️ writing module docstring.
teald Jul 28, 2024
5e689e4
docs(wiki-guesser): ✍<fe0f> writing command docstring.
teald Jul 28, 2024
82dd7c0
docs(bot): ✍️ Add docstrings in help command source.
teald Jul 28, 2024
9753239
docs(bot): ✍️ Add docstrings in leaderboard command source.
teald Jul 28, 2024
7f5d082
docs(bot): ✍️ Add docstrings in never command source.
teald Jul 28, 2024
41fac73
docs(bot): 🧹 standardize function docstrings a bit, correct them
teald Jul 28, 2024
4a8c154
docs(bot): ✍️ Minor docstring edits in rabbit-hole command source.
teald Jul 28, 2024
b5dbd32
docs(bot): ✍️ Add docstrings in reset-scorescommand source.
teald Jul 28, 2024
5a4fe38
docs(bot): ✍️ Add docstrings in sync command source.
teald Jul 28, 2024
6dd2155
docs(bot): ✍️ Add docstrings in user-infocommand source.
teald Jul 28, 2024
3df377f
docs(bot): ✍️ Add docstrings in wikiguesser class source.
teald Jul 28, 2024
e4c7e3e
docs(bot): ✍️ Add docstrings in .
teald Jul 28, 2024
2192e41
docs(bot): ✍️ Add docstrings in wikiguesser source.
teald Jul 28, 2024
c24d5ae
fix(utils): :bug: Remove absolute import -- was for testing.
teald Jul 28, 2024
64465fe
docs(wiki-guesser): :art: Minor tweak with a line break
teald Jul 28, 2024
5325521
docs(bot): ✍️ Add docstrings in wiki-random source.
teald Jul 28, 2024
ce4f8e8
docs(bot): ✍️ Add docstrings in wiki-search source.
teald Jul 28, 2024
0ab52a5
docs(bot): ✍️ Slightly modify and add some docstrings in database cor…
teald Jul 28, 2024
dc58827
docs(bot): ✍️ Slightly modify and add some docstrings in database use…
teald Jul 28, 2024
8c49c29
docs(bot): ✍️ Slightly modify and add some docstrings in main bot sou…
teald Jul 28, 2024
f35174b
docs(bot): ✍️ Slightly modify and add some docstrings in wikiutils so…
teald Jul 28, 2024
f0a7644
refactor(pure-pulsers): :goal_net: Added some error handling just in …
DannyTheHeretic Jul 28, 2024
112723e
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Jul 28, 2024
640b4a2
feat: retrieves animal and finds a valid weight range
Gobleizer Jul 28, 2024
afb098d
Merge branch 'main' into feature/wikianimal
Gobleizer Jul 28, 2024
953bd3d
feat: check win loss conditions for animal weights
Gobleizer Jul 28, 2024
cc72443
chore: refactor to shared give up button
Gobleizer Jul 28, 2024
c85e87b
Merge pull request #10 from DannyTheHeretic/feature/wikianimal
Gobleizer Jul 28, 2024
51adb88
fix(pure-pulsers): :bug: Remove the heartbeat, @ the correct user
DannyTheHeretic Jul 28, 2024
77d6f10
bugfix: remove buttons when game is won
Gobleizer Jul 28, 2024
b0ea6fb
Merge: Fix wiki animal bug
Gobleizer Jul 28, 2024
c660b15
Merge pull request #11 from DannyTheHeretic/feature/wikianimal
Gobleizer Jul 28, 2024
401b18a
refactor(pure-pulsers): :rocket: Final Version. This is the end.
DannyTheHeretic Jul 28, 2024
4849e8f
feat(pure-pulsers): :zap: Speed
DannyTheHeretic Jul 28, 2024
2b9d780
rmd the shutdown
DannyTheHeretic Jul 28, 2024
35969cd
feat(pure-pulsers): :sparkles: Everything is done.
DannyTheHeretic Jul 28, 2024
4974ef0
Update rabbit_hole.py
DannyTheHeretic Jul 28, 2024
6f6eba8
feat: add exception handling for api rate limits
spenpal Jul 28, 2024
c852346
Doc update
DannyTheHeretic Jul 29, 2024
8f9eac6
Docs update
DannyTheHeretic Jul 29, 2024
02297dd
docs(pure-pulsers): :memo: Added an install Guide.
DannyTheHeretic Jul 29, 2024
5a86200
Typo
DannyTheHeretic Jul 29, 2024
4341526
docs: Final README.
DannyTheHeretic Jul 29, 2024
5e280ed
docs(README): 🧹 minor spelling, grammar edits.
teald Jul 30, 2024
d081832
docs(README): 🧹 listify env vars, add links to relevant sections
teald Jul 30, 2024
05c66fe
docs(README): 🧹 Initial paragraph clarifying .env file is used
teald Jul 30, 2024
2610c04
docs(README): 🧹 Add `git clone` detail, mostly for copy-paste
teald Jul 30, 2024
619ec08
docs(README): 🧹 Clarify where on the page bot is.
teald Jul 30, 2024
1da3b59
docs(README): 🧹 Clarify firebase instructions, grammar edits
teald Jul 30, 2024
f62452b
docs(README): ⚠️ Add warning about needing to specify the project.
teald Jul 30, 2024
32794d8
docs(README): 🧹 Link to main page
teald Jul 30, 2024
d2b3372
docs(README): 🧹 Add section header to highlight renaming step more cl…
teald Jul 30, 2024
d10a6d9
docs(README): 🧹 Fix final instances of gemma
teald Jul 30, 2024
8ee0fda
docs: :fire: removed useless half sentance
WONG-TONG48 Jul 30, 2024
54763e0
docs: :art: adjusted hyperlink
WONG-TONG48 Jul 30, 2024
b934bde
docs: website link added to README
WONG-TONG48 Aug 1, 2024
82f3681
Update README.md
WONG-TONG48 Aug 1, 2024
e2843d2
docs(README): clarify installation instruction
teald Aug 1, 2024
dac5e33
docs(README): Initial contributions section
teald Aug 1, 2024
59b1a0e
Add files via upload
DannyTheHeretic Aug 1, 2024
ed82ed4
docs(README): Add teald contribution
teald Aug 1, 2024
e2e3ff0
docs(README): add logo work to teald entry
teald Aug 1, 2024
450946d
adding the command gifs to the github
DannyTheHeretic Aug 1, 2024
d281e0a
docs(README): Add connection to the theme section and initial text
teald Aug 1, 2024
cf2061f
Merge branch 'main' of https://github.com/DannyTheHeretic/pure-pulsars
DannyTheHeretic Aug 1, 2024
2fab1d9
docs(README): :rotating_light: Add trailing whitespace for linter
teald Aug 1, 2024
c138228
gif added
WONG-TONG48 Aug 1, 2024
ac2206c
Update README.md
DannyTheHeretic Aug 1, 2024
d9a238e
Update README.md
DannyTheHeretic Aug 1, 2024
d159198
Update README.md
DannyTheHeretic Aug 1, 2024
345fd40
Update README.md
DannyTheHeretic Aug 1, 2024
face837
Update README.md
DannyTheHeretic Aug 1, 2024
9093e43
Update README.md
DannyTheHeretic Aug 1, 2024
b39a4b8
Update README.md
DannyTheHeretic Aug 1, 2024
eb4db37
Update README.md
WONG-TONG48 Aug 1, 2024
494f65e
Update README.md
DannyTheHeretic Aug 1, 2024
7753001
Update README.md
DannyTheHeretic Aug 1, 2024
4dec9b1
Update README.md
DannyTheHeretic Aug 1, 2024
74fb68e
Update README.md
DannyTheHeretic Aug 1, 2024
52f73a1
Update README.md
DannyTheHeretic Aug 1, 2024
d842e66
Update README.md
DannyTheHeretic Aug 1, 2024
7db38fc
Update README.md
DannyTheHeretic Aug 1, 2024
849faa8
Update README.md
DannyTheHeretic Aug 1, 2024
1b1a09e
Update README.md
DannyTheHeretic Aug 1, 2024
498c46f
Update README.md
DannyTheHeretic Aug 1, 2024
12d485f
Update README.md
DannyTheHeretic Aug 1, 2024
82d6b83
Update README.md
DannyTheHeretic Aug 1, 2024
e9608fe
Update README.md
DannyTheHeretic Aug 1, 2024
ad8c6ec
rename a file for docs
DannyTheHeretic Aug 1, 2024
febbafc
Update README.md
DannyTheHeretic Aug 1, 2024
8c18e45
Update README.md
DannyTheHeretic Aug 1, 2024
0abe572
Update README.md
DannyTheHeretic Aug 1, 2024
8873d97
Update README.md
DannyTheHeretic Aug 1, 2024
991c70c
Update README.md
DannyTheHeretic Aug 1, 2024
ad1172b
Update README.md
DannyTheHeretic Aug 1, 2024
a3de14c
Update README.md
spenpal Aug 1, 2024
2917765
docs(README): Fix website link, add text descriptions
Gobleizer Aug 1, 2024
ca1ecde
docs(README): completes text descriptions of app behavior
Gobleizer Aug 1, 2024
d73a121
Update README.md
Gobleizer Aug 1, 2024
71ddd9b
Update README.md
WONG-TONG48 Aug 1, 2024
819147c
Update README.md
DannyTheHeretic Aug 1, 2024
accfefc
Update README.md
DannyTheHeretic Aug 1, 2024
c0fb629
Add 'pure-pulsars/' from commit 'accfefcbf1dcb3b60c412dbee6b6aa295c99…
janine9vn Aug 13, 2024
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
16 changes: 16 additions & 0 deletions pure-pulsars/.dockerignore
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
35 changes: 35 additions & 0 deletions pure-pulsars/.github/workflows/lint.yaml
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]
115 changes: 115 additions & 0 deletions pure-pulsars/.gitignore
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
17 changes: 17 additions & 0 deletions pure-pulsars/.pre-commit-config.yaml
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
13 changes: 13 additions & 0 deletions pure-pulsars/Dockerfile
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
Copy link

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?

Copy link

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.


RUN pip install -r requirements.txt

COPY . .

RUN "ls"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is ls needed here?


CMD ["python", "src/main.py"]
7 changes: 7 additions & 0 deletions pure-pulsars/LICENSE.txt
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.
22 changes: 22 additions & 0 deletions pure-pulsars/Pipfile
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"
Loading