Code Monkey home page Code Monkey logo

discord-bot-on-ethereum's Introduction

Installation & Configuration

To install the bot, you need to have NodeJS v16 installed and NPM on your machine. Once you're ready, browse to the folder where you have the bot. And run "npm install".

This will install all needed dependencies. Once the setup is complete, you can move on to configuration.

Configuration

If you want to change anything in the configuration file, you can do so by editing the ".env" file located in the "discord-bot" folder. You can do that using "nano .env". This will open the config file in a text editor.

Once you're done editing the env file, you can exit the editor by pressing "CTRL + X". It will ask you if you want to save the file. Press enter and it will automatically save it for you.

Running

To run the bot, login to the VPS, browse to the folder "discord-bot" using cd. e.g. "cd discord-bot/".

Screen

If the bot is already running, you will have to stop it. The bot is being ran in a screen so that it runs 24/7. To enter the screen of the bot, type "screen -r". Once in the screen, you can shutdown the bot by pressing CTRL + C, like a regular console.

Startup

Once you are sure that there is no screen running with the bot. You can proceed with starting the bot up. You do that by running the following command: "screen node index.js". This will start the bot in a "screen".

Before you leave your VPS, make sure to press "CTRL + A + D". This will "detach" your terminal from the screen, and will let the bot run constantly. Once again, to go back to the screen, type "screen -r".

FAQ

text shown as rectacles on PNL image

try below sudo apt update sudo apt install fonts-open-sans

discord-bot-on-ethereum's People

Contributors

alan-cousin avatar

Watchers

Ksan Kai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.