Change the int(...) function to a float(...) function, in the __main__.py and cycles.py files
Update the "Argument" section in the README.md file to match the fetchcord --help command output
Add a WiFi Connectivity check, and throw an error when not connected to an internet source, whether it be a mobile hotspot, or a modem connection, which throws the error when there isn't a WiFi Connection:**
(base) Lukas-Batema@lukes-imac FetchCord % fetchcord
('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/fetchcord", line 33, in <module>
sys.exit(load_entry_point('FetchCord', 'console_scripts', 'fetchcord')())
File "/Volumes/GameHogPlays 2TB External HD/Programming/VSCode/FetchCord/fetch_cord/__main__.py", line 118, in main
run.run_loop(computer)
File "/Volumes/GameHogPlays 2TB External HD/Programming/VSCode/FetchCord/fetch_cord/run_rpc.py", line 65, in run_loop
func(self, self.loops_indexes[i], computer)
File "/Volumes/GameHogPlays 2TB External HD/Programming/VSCode/FetchCord/fetch_cord/cycles.py", line 197, in cycle2
run.try_update(
File "/Volumes/GameHogPlays 2TB External HD/Programming/VSCode/FetchCord/fetch_cord/run_rpc.py", line 117, in try_update
self.rpcs[key].update(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pypresence/presence.py", line 34, in update
return self.loop.run_until_complete(self.read_output())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pypresence/baseclient.py", line 103, in read_output
status_code, length = struct.unpack('<II', preamble[:8])
struct.error: unpack requires a buffer of 8 bytes
Which now shows:
(.venv) (base) Lukas-Batema@lukes-imac FetchCord % fetchcord
('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
Connection Error: Please connect to the internet to use FetchCord!
Fix the alt attributes in <img...> tags in the README.md file
Fix capitalization errors in the alt attributes of <img...> tags in the README.md file
Fix endings of <img...> tags, including one that was missing an ending > in the README.md file
Remove all of the commented-out code (via a persistent annoyance from the SonarLint VSCode Plug-in)
Reduce Cognitive Complexity as far as possible in __main__.py
** means removed a feature that was originated in this PR
Dear FetchCord Maintainers,
PR #174's Changes
README.md
fileint(...)
function to afloat(...)
function, in the__main__.py
andcycles.py
filesREADME.md
file to match thefetchcord --help
command output**
Which now shows:
<img...>
tags in theREADME.md
filealt
attributes of<img...>
tags in theREADME.md
file<img...>
tags, including one that was missing an ending>
in theREADME.md
file__main__.py
** means removed a feature that was originated in this PR