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

Install guide

drugsosos edited this page Jun 27, 2022 · 7 revisions

👋🏻 You need the guide? Here it is!

Pre requirements

  1. Python 3.10

    If you want links / installation guide - it's down below

  2. Two (2) hands 🤲

    Just kiddin', they are neglectable 🐸

Installation

  1. Python

    If you have it already, just skip this part

    How to install Python 3.10
    • Mac OS

       

      • Check that Brew is installed

        If not, install it via command below

        /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
        
      • If Brew is installed, run this

        brew install python@3.10
        
    • Windows

       

      • If you have Chocolatey installed

        choco install python
        
      • And that if you don't

        Open link below and click on the first one if the stable releases

        https://www.python.org/downloads/windows/
        
    • Debian based distros

       

      sudo apt update && sudo apt upgrade 
      
      sudo apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev  
      
      wget https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz 
      
      tar xzf Python-3.10.2.tgz
      
      cd Python-3.10.2
      
      ./configure --enable-optimizations 
      
      make altinstall
      
    • Ubuntu (duh)

       

      sudo add-apt-repository ppa:deadsnakes/ppa
      
      sudo apt update 
      
      sudo apt install python3.10
      
    • Arch/Manjaro

       

      sudo pacman -S python
      
    • Alpine

       

      apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/main python3
      
  1. Installing Python dependencies

    1. Open repository folder in terminal

      cd /path/to/repo/
      
    2. Make sure you have Pip installed

      You can skip this, but if you want to...

      How to check if Pip is installed?

       

      pip3 --version
      

      Output:

      pip 22.0.4 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
      
      How to install Pip?

       

      python3 -m ensurepip
      
  2. Install Poetry

    pip3 install poetry
    

    or

    python3 -m pip install poetry
    
  3. Install dependencies

    poetry install
    
  4. Set up .env config

    • Copy .env.example
    • Remove .example from it's name
    • Enter CLIENT_ID and CLIENT_SECRET (where to get them?)
    • Change other settings if you want to
  5. Run script

    poetry run python main.py
    

Clone this wiki locally