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

ServerSMP BOT v13

Prince527 edited this page Oct 4, 2021 · 11 revisions

ServerSMP - BOT

This is a discord bot, that has a lot of stuff in it like meme's, economy, admin, extra, etc.

banner

Setup

The bot has setup for Local, Heroku, Glitch, Replit and maybe Docker. But also I do host the bot if you want to Invite it?

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 do npm i to install all the required stuff.
  5. After do npm start and the bot starts.

Heroku

This clone's the project to heroku.

Deploy

Glitch (it is from Disc 11 by Zhycorp)

You can still use Glitch and keep it online in this project.

  1. Go to glitch.com and make an account
  2. Click New Project, and then Import from GitHub
  3. Please specify the field with https://github.com/Prince527GitHub/ServerSMP-BOT/, then wait for a while
  4. Find the file names .env.schema then rename it to .env, let's configure that
  5. Get your bot token at Discord developer portal then invite it to your server, and fill the bot prefix with anything you want
  6. Look at the file named .env.exsemple then fill the stuff that it needs in .env
  7. After that, go to Tools > Terminal type refresh
  8. Close Terminal tab, then open Tools > Logs, wait for a while
  9. The bot should start a website copy it, then to make it stay online, please watch this video carefully.

Your bot is online, and ready to use!

Docker

This may work on docker, but idk how.

Replit (From Discord.py Music Bot)

So just so you know this bot is more then 500MB, so you need the hacker plan on replit to use this bot on there.

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.

Invite

So ya I do host the bot if you want to invite it.

Invite

Config

TOKEN

Your Discord bot's token. (options: your-bots-token) Link

PREFIX

Your bot's prefix. (options: your-bots-prefix) Link

MONGO

Your mongodb url. (options: your-mongodb-url) Link

PORT

Port for the webserver. (options: port) Link

DISTOKEN

Your disbot token. (options: your-disbot-token, false) Link

OWNER

Owners ids, you can have more then one. (options: discord-user-ids) Link

STATUS TYPE

What type of status does the bot use? (options: playing, listening, or watching) Link

STATUS

What status does the bot display. (options: what-ever-you-want) (available variables: {guildsCount}, {usersCount}, {botPrefix} and {channelsCount}) Link

OSU API

Your osu api key. (options: your-osu-key, false) Link

REPORT

How you want reports to be sent. (options: [ { USER, SERVER }, { user-id, channel-id } ] ) Link

FORTNITE TRACKER

Your fortnite tracker api key. (options: your-api-key, false) Link

Config Exsemple

TOKEN=Njk1NjY0ODU4NDA1Nzk3ODg4.dQw4w9WgXcQ.TmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXA
# Your Discord bot's token (options: your-bots-token)

PREFIX=-
# Your bot's prefix (options: your-bots-prefix)

MONGO=mongodb+srv://Useranme:Passwword@Database.glgvl.mongodb.net/Data
# Your mongodb url (options: your-mongodb-url)

PORT=8080
# Port for the webserver (options: port)

DISTOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Your disbot token (options: your-disbot-token, false)

OWNER=364105797162237952, 424269868209143808, 488363709992009728
# Owners ids, you can have more then one. (options: discord-user-ids)

STATUS_TYPE=watching
# What type of status does the bot use? (options: playing, listening, or watching)

STATUS=DiamondGolurk on youtube.com
# What status does the bot display (options: what-ever-you-want) (available variables: {guildsCount}, {usersCount} and {channelsCount})

OSU_API=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Your osu api key (options: your-osu-key, false)

REPORT=USER, 364105797162237952
# How you want reports to be sent (options: [ { USER, SERVER }, { user-id, channel-id } ] )

FORTNITE_TRACKER=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# Your fortnite tracker api key (options: your-api-key, false)

Config Schema

TOKEN=
PREFIX=
MONGO=
PORT=
DISTOKEN=
OWNER=
STATUS_TYPE=
STATUS=
OSU_API=
REPORT=
FORTNITE_TRACKER=
CHAT_BOT=

Replit

Clone this wiki locally