Say hi to my twin brother Tummy! Made for fun only.... so far 👀
https://realpython.com/how-to-make-a-discord-bot-python/
https://discord.com/developers
https://github.com/Rapptz/discord.py
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html?highlight=ctx#context%60
https://developer.riotgames.com/
https://www.youtube.com/watch?v=vQw8cFfZPx0&list=RDCMUCR-zOCvDCayyYy1flR5qaAg&index=7
https://github.com/pseudonym117/Riot-Watcher
https://riot-watcher.readthedocs.io/en/latest/
Setting up Python and Virtual Environment
Install Python online
Linter for Python on Vscode
py -m venv venv
./venv/Scripts/activate
Run vscode as administrator if needed
.vscode is vscode using the environment
.venv is the folder to hold all the packages
Storing Tokens
pip install python-dotenv
.env is a file where I can add tokens in the following format:
name=token (no spaces)
.gitignore Edits
Add .vscode, venv/, .env
Needed to make sure these files don't get uploaded to github
Installing Modules
py -m pip install -U discord.py = installing discord for example
pip freeze = tells you what you have installed
pip freeze > requirements.txt = copies over the required modules needed
pip install -r requirements.txt = for when you need to install everything
Mistakes and Fixes
If renamed repo > delete venv > reinstall
Go to the hidden file .git > config > update url for github
Shortcuts
Alt + Shift + F = Auto Format with autopep8
Misc
Python Classes Constructors have __ init __ as constructor
Python Classes need self as parameter
""" Function Comment """ inside the function
League of Legends API
/opgg
LunchTime To be continued...