Giter Site home page Giter Site logo

guard-bot's Introduction

Environment

To build the bot using this source-code, setup all vars manually and fill it at eduu/config.py file.

Deploy on Heroku (PAID)

  1. Fork this repo
  2. Visit heroku.com
  3. Create new App -> Enter the App Name -> Choose App Country
  4. Click on Deploy Tab
  5. Click on GitHub Tab -> Connect the App to Your GitHub account
  6. Enter the Repo name You've forked before -> Tap Connect
  7. Click on Deploy Branch button
  8. After build done -> Click on Resources Tab -> Switch Toggle On

Deploy on VPS/Linux

Clone the repo first

git clone https://github.com/levina-lab/guard-bot
# install python3-venv
sudo apt install python3-venv
# activate venv
python3 -m venv venv
. ./venv/bin/activate
# install requirements
pip install -Ur requirements.txt
# setup config
cd eduu
nano config.py (type CTRL + s to save change & CTRL + x to exit)
cd .. (exit from eduu directory)
# run the bot
python3 -m eduu

Or if you using systemd take a look at this

make a file named eduubot.service and fill it with one of there

[Unit]
Description=EduuBot
After=network.target

[Service]
Type=simple
User=youruser
WorkingDirectory=/path/to/eduubot
# if you using venv
ExecStart=/path/to/venv/bin/python3 -m eduu
# if you not using venv
# ExecStart=/usr/bin/python3 -m eduu
Restart=always

[Install]
WantedBy=multi-user.target

Then run this command

sudo cp eduubot.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable eduubot
sudo systemctl start eduubot

Credit

This source-code is fully based on AmanoTeam's repo and fully re-edited by me for personal use, and for another else want to use this source-code so thanks to them.

guard-bot's People

Contributors

alissonlauffer avatar reysiregar avatar iiiiii1wepfj avatar dependabot[bot] avatar hitalom avatar anandpskerala avatar yusufusta avatar deepsource-autofix[bot] avatar new-dev0 avatar ruizlenato avatar dependabot-preview[bot] avatar a0xz avatar aliwoto avatar andrielfr avatar deepsourcebot avatar code-rgb avatar zxce3 avatar rianfc avatar sppidy 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.