githubEdit

Replit

✍ Guides | Setting up Strangebot for Replit!

Intro

Replit does not automatically update node to the latest version. **This is a problem as Strangebot runs on Discord.js V13

circle-exclamation

Guide

    1. Create a new repl. **Set the language as "Nix (Beta)" ** Language Setuparrow-up-right

    1. Go to the file "replit.nix" and copy the code below (You can get rid of cowsay if you want, but who doesnt love cowsay?) Save this file, Replit does this automatically... Sometimes

{ pkgs }: {
    deps = [
        pkgs.cowsay
        pkgs.nodejs-16_x
    ];
}
    1. Go to the file ".replit" and change its contents to the code below. (We will change this later, this is just for our testing purposes)

run = "node test.js"

    1. Create a new file named "test.js", its contents should look like this.

console.log(process.version)

Main part of Guide

    1. Clone the git repository.

git clone https://github.com/saiteja-madha/discord-js-bot.git

(I do this by hand, There is probably a linux command I dont know that could do this for us.)

    1. Go to the Shell and type

npm i

    1. Go to the ".replit" file and make sure it looks like this

run = "node ."

Closing Remarks

Good job, Your bot is done. Replit is a really good host for discord bots as it allows for powerful machinery with low costs and 24/7 uptime. IMO, The hacker plan is the best plan for hosting a discord bot for beginners or even serious developers.

This guide was created by mid (mid#0002). My bot is available at https://www.beemo.best.

Join the Strangebot support server for any further help.

Last updated