Git Product home page Git Product logo

pika's Introduction

Setup

Clone the repository

git clone https://github.com/sp35/Pika.git

Shift to the project repository

cd Pika/

Make a new Virtual Environment and activate it

virtualenv -p python3 venv
source venv/bin/activate

Install the required modules

pip install -r requirements.txt

Add your channel's keys in keyconfig.py

TBOT_TOKEN = "________ BOT TOKEN ________"
TBOT_CHAT_ID = ["________ CHAT ID 1________", "________ CHAT ID 2 ________"]

Run the script (root access required)

sudo venv/bin/python main.py

Output

(venv) ~/Projects/Pika$ sudo venv/bin/python main.py [sudo] password for user: 
Press Shift+F1 anytime to take a ss
Press Ctrl+C to quit
Image saved at ss/pic_61e9c554-37f3-4a87-8802-dbfe58bdd82b.png
File Uploaded to Channel

Optional

Run in background (root access required)

sudo ./pika_bg.bash

Output

~/Projects/Pika $ sudo ./pika_bg.bash
start?  y
end?    n
y
Starting...
Started 2920618
~/Projects/Pika $ sudo ./pika_bg.bash
start?  y
end?    n
y
Killing prev process...
Killed 2920618

Starting...
Started 2920689
~/Projects/Pika $ sudo ./pika_bg.bash
start?  y
end?    n
n
Ending...

Killing prev process...
Killed 2920689

pika's People

Contributors

dependabot[bot] avatar sp35 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.