Tutorial [EN] - Entw1ck/CounterTitle GitHub Wiki
Welcome!
Hello and welcome to this wiki. Here, you will learn about:
- What does the bot do?
- How to download it?
- How to set it up?
- How to make it work with your PC?
- How to keep it online 24/7? (Using the free hosting service KataBump)
Download the Bot
There are 2 methods to download the bot.
1. Manual Download
To start, go to the repository page. Then click on the green "Code" button.
A tab will appear. You just need to click on the "Download ZIP" button.
And that's it, an archive containing the CounterTitle code!
2. Download via Git
For this option, you will need Git. Open a command terminal in the folder of your choice and enter the following:
git clone https://github.com/Entw1ck/CounterTitle.git
Then
cd CounterTitle
Setting up the Bot
For this step, you will need a bot token, which is available for anyone at Discord's Developer Portal.
Next, open the .env
file of your bot, and after the equal sign, enter its token.
Starting the Bot
After setting up the bot, you will need a Python interpreter, which can be downloaded from python.org. At the VERY beginning of your installation, make sure to check the box 'Add to PATH'. Otherwise, it won't work.
Once Python is installed, go to the project folder, right-click, and click on 'Open terminal here'. A black window similar to this one should appear:
Inside, enter EXACTLY:
pip install -r requirements.txt
then
py app.py
And that's it! The bot is online.
Hosting the Bot on Katabump
For this last step, you will need a Katabump account. Use my referral link to help me create more bots: https://dashboard.katabump.com/auth/login#d045a9
After that, create a server and make sure it's in Python.
First, you need to "zip" (compress) your files. To do this, select all your files except for the 'pycache' folders and the 'database.db' file, then right-click and "Compress".
A new file named "folder name.zip" will be created.
Next, go to your server provided by Katabump, in the control panel, then to "Files".
Second-to-last step: drag and drop the file onto the web page.
Finally, "unzip" your file.
And that's it, just start the server, and you're all set!