A Discord Bot programmed by Me and @anditv21
Commands
- Added avatar command which shows the avatar of a mentioned user
- Added command which nukes a discord Channel
- Added command which sends mine and anditv's github
- Added command which sends my Twitch - Channel
- Added command which sends my Youtube - Channel
- Added command for my website
- Added help command which shows all commands
- Added clear command which deletes a specified amount of messages
- Added download command which allows you to download YouTube videos
- Added Miesmuschel command
- Added reverse command which reverses a string
- Added userinfo command which displays informations about a user
- Added fact command which gives you a random useless fact
- Added fact command which gives you a random useless fact BUT in the german language
- Added RPC command which changes the bots activity
- Added Kick command
- Added Ban command
Setup
- Create a file named token.txt in the same directory as the main.py file
- Go to https://discord.com/developers/applications
- Click "New Application"
- Click "Bot" in the navigation bar
- Click "Add bot"
- Click "Yes, do it!"
- Click "Reset Token"
- Click "Yes, do it!"
- Enter your 2FA Code if you have to.
- Copy and paste your Token into token.txt
- Open CMD (Command Prompt) and cd to your Bot directory
- Run pip install -r requirements.txt
- Last but not least: Run python main.py
As you can see, the bot is located on my desktop.
So I have to type "cd Dekstop\Lauchbot-main" and press enter
Linux Rootserver-setup
- Open your FTP application you use for your server and connect to your rootserver.
- Go to your root location in your server and drag the Lauchbot folder with all the files (except Readme.md, .gitignore and temp_main) into it
- Connect to your server via your SSH Client
- Go to your root directory (or type: "cd root")
- You need to install python to your server. To install python type: "wget https://bootstrap.pypa.io/get-pip.py" and after that command use: "python3 ./get-pip.py"
- Now you need to install pm2, so your bot autostarts even after your linux Server restarts. To install pm2 follow this guide
- After you installed python and pm2, go to the folder-directory you named your bot (in my case Lauchbot): "cd YourFolderName"
- Then type: "pip3 install -r requirements.txt"
- After the packages are installed type: "pm2 start main.py --interpreter python3"
- If you did everything right you'll notice that your bot started, Congrats!
- You can also test the autostart just by restarting your linux server.