Table of Contents
Now, in conditions of isolation, many companies are forced to transfer employees to remote work. And often computers are always on, which is bad. And so I decided to write this bot.
If you want to use your bot with my code:
- Clone the repo
git clone https://github.com/AlexandrVino/TurnPCBot.git
- Install Python packages
pip install -r requirements.txt
- Create
.env
file with db and bot data (Example:env-example.env
) - Enter your Bot Name in
data/config.py
# # You should reset bot name if your bot launch on your company server; # else if you use @TurnOnPcBot should globally turn server from https://github.com/AlexandrVino/TurnOnPcBotServer.git) # BOT_NAME = 'TurnOnPcBot' # Your bot name here (can be like "")
else: (isn't worked because bot not deployed to server)
-
Clone the repo
git clone https://github.com/AlexandrVino/TurnOnPcBotServer.git
-
Globally turn server.
# For example download ngrok from https://ngrok.com/download # Turn in shell with any free port # Example (in ngrok shell): ./ngrok http 4567
-
Set host in bot
# Example bot command: /host http://7e9ea9dc.ngrok.io