Skip to content

Showdown76py/tesla-over-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages