Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.74 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.74 KB

Tesla Over Discord

Control your Tesla through your Discord application.

Installation

This project is possible with discord.py and the TeslaPy It has been tested on versions >= Python 3.7.

Create the Discord bot

Run the code

  1. Install the requirements
pip install -r requirements.txt
  1. Create a .env file and replace the dummy values your Tesla Account e-mail, Discord token and the User IDs that are allowed to use the bot.
DISCORD_TOKEN=<your Discord bot token>
[email protected]
ALLOWED_USERIDS=100000000000,200000000000

User IDs are a way to recognize the different Discord accounts. If you don't know how to get yours, check this tutorial made by Discord.

  1. Run the bot
python app.py

Important Notice

Your session will be saved into a cache.json file. Even tho it is not a secure way to save a session token, I cannot modify that, so please make sure that you don't share your cache.json file with anyone.