Skip to content

🤖 Discord bot named "Twin Tummy" which can stalk people playing league of legends through "riotwatcher" API

Notifications You must be signed in to change notification settings

imatomster/twin-tummy-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twin Tummy Discord Bot

Say hi to my twin brother Tummy! Made for fun only.... so far 👀

Sources

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 Virtual Enviornment and Modules

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

Bot Features

League of Legends API
/opgg

LunchTime To be continued...

About

🤖 Discord bot named "Twin Tummy" which can stalk people playing league of legends through "riotwatcher" API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages