Skip to content
This repository was archived by the owner on Sep 24, 2022. It is now read-only.

ServerSMP BOT (Python)

Prince527GitHub edited this page Aug 23, 2021 · 7 revisions

ServerSMP - BOT

Hi, this is a version of ServerSMP - BOT for python it's super simple.

banner

Setup

Local: ✔️ Heroku: ✔️ Replit: ✔️

Local

  1. So start by downloading it, then extract it.
  2. Find the file names .env.schema then rename it to .env, then configure that.
  3. Open cmd and use cd to go to the directory.
  4. Then install the packages.
  5. After do python index.py and the bot starts.

Heroku

This clone's the project to Heroku.

Deploy

Your bot is online, and ready to use!

Replit (From Discord.py Music Bot)

Pre-Setup

If you don't already have a discord bot, click here, accept any prompts then click "New Application" at the top right of the screen. Enter the name of your bot then click accept. Click on Bot from the panel from the left, then click "Add Bot." When the prompt appears, click "Yes, do it!"

Left panel

Then, click copy under token to get your bot's token. Your bot's icon can also be changed by uploading an image.

Bot token area

Setup

Look at the file .env.exsemple then copy the main stuff of that so like TOKEN, then follow this video by Imagine Gaming Play.

Uptime

All you have to do to keep your bot up is setup something to ping the site your bot made every 5 minutes or so. But because you paid you can just change a setting to allways run the replit.

Go to uptimerobot.com and create an accout if you dont have one. After verifying your account, click "Add New Monitor".

  • For Monitor Type select "HTTP(s)"
  • In Friendly Name put the name of your bot
  • For your url, put the url of the website made for your repl.
  • Select any alert contacts you want, then click "Create Monitor"

Uptime robot example

Your bot should now be good to go, with near 100% uptime.

Clone this wiki locally