-
Notifications
You must be signed in to change notification settings - Fork 0
T.N.S.H.B
This bot is not for help! When you dm this bot it will get you in contact with a mod so that he can not help.
The bot has setup for Local
, Heroku
, Glitch
, Replit
and maybe Docker
.
- So start by downloading it, then extract it.
- Find the file names
.env.schema
then rename it to.env
, then configure that. - Open cmd and use
cd
to go to the directory. - Then do
npm i
to install all the required stuff. - After do
npm start
and the bot starts.
This clone's the project to Heroku.
You can still use Glitch and keep it online in this project.
- Go to glitch.com and make an account
- Click New Project, and then Import from GitHub
- Please specify the field with
https://github.com/Prince527GitHub/ServerSMP-BOT/
, then wait for a while - Find the file names
.env.schema
then rename it to.env
, let's configure that - Get your bot token at Discord developer portal then invite it to your server, and fill the bot prefix with anything you want
- Look at the file named
.env.exsemple
then fill the stuff that it needs in.env
- After that, go to Tools > Terminal type
refresh
- Close Terminal tab, then open Tools > Logs, wait for a while
- 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!
This may work on docker, but idk how.
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.
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!"
Then, click copy under token to get your bot's token. Your bot's icon can also be changed by uploading an image.
Look at the file .env.exsemple
then copy the main stuff of that so like TOKEN
, then follow this video by Imagine Gaming Play.
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"
Your bot should now be good to go, with near 100% uptime.
Your Discord bot's token.
Your mongodb url.
Your bot's prefix.
Port for the webserver.
The guild where mod mail will go.
The mod mail role id.
The mod mail category id.
The transcript channel id.
TOKEN=Njk1NjY0ODU4NDA1Nzk3ODg4.dQw4w9WgXcQ.TmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXA
# Your Discord bot's token.
MONGO=mongodb+srv://Useranme:Passwword@Database.glgvl.mongodb.net/Data
# Your mongodb url.
PREFIX=-
# Your bot's prefix.
PORT=8080
# Port for the webserver.
GUILD=
# The guild where mod mail will go.
ROLE=
# The mod mail role id.
CATEGORY=
# The mod mail category id.
TRANSCRIPT=
# The transcript channel id.
TOKEN=
MONGO=
PREFIX=
PORT=
GUILD=
ROLE=
CATEGORY=
TRANSCRIPT=