Discord | How to automatically start your discord Bot with a batch file (discord.js/discord.py)

Аватар автора
JS Обучение
In this tutorial I&show you how to automatically start your discord bot when you boot your computer with a batch (bat) file This should work with both bots programmed in java script (discord.js) and python (discord.py). There is only a difference of one line in the batch file. Text Tutorial: CREATION OF THE STARTER BATCH 1. Go to the location where the files of your discord bot are located 2. Create a text dokument (you can do that with notepad) 3. For discord.js type in this (so if you programmed in java script): @echo node . 3.For discord.py type in this (so if you programmed in python): @echo python YOURBOT.py 4. Press save as. There you can call this what you want. Just make sure that you add .bat at the end to save it as a bat file. Your file could look something like this "start.bat". (If you don&want the terminal to be invisible skip the next steps (till you are at the autostart part) and double click your batch file to start the bot) CREATION OF THE VBS FILE TO MAKE OUR BOT RUN IN THE BACKGROUND 5. Create another text document. In this one put in the following commands: Set WshShell = CreateObject("WScript.Shell") Set WshShell = Nothing 6. Press save as. Call it what you want but make sure you add ".vbs" at the end of the name to make it a vbs file (if you want the bot to start now jsut double click the file. There will be no prompt coming up if you have done it right) AUTOSTART: 7. Press Windows + R 8. Type in the run window that will...

0/0


0/0

0/0

0/0