Coder Social home page Coder Social logo

mikaelsiidorow / kipubot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 450 KB

Graphs for Friday bottle raffles.

Home Page: https://t.me/NoPainNoGraphbot

License: GNU General Public License v3.0

Python 96.99% Dockerfile 3.01%
python python3 raffles telegram telegram-bot docker postgres graphs

kipubot's Introduction

Kipu Grapher ๐ŸŒ

Telegram bot to graph friday bottle raffle progress. Currently supports graphing the raffle pool and expected values ๐Ÿ“ฃ

Getting Started

Add the bot on Telegram into your group and enjoy!

Watch the chart climb as you reach the raffle end date! ๐Ÿ“ˆ Insane Stonks Graph

Descend into sadness when every entry is the minimum amount and the expected value stays zero ๐Ÿ˜” Sad Excepted Value Graph

Developing KipuBot

Docker (Recommended)

  1. Set PYTHONPATH=${PYTHONPATH}:kipubot in .env
  2. Set BOT_TOKEN in .env
  3. docker-compose -f docker-compose.dev.yml up

Pipenv

Using pipenv:

  1. Set PYTHONPATH=${PYTHONPATH}:kipubot in .env
  2. Set BOT_TOKEN in .env
  3. Set DATABASE_URL in .env
  4. pipenv install --dev
  5. pipenv run dev

kipubot's People

Contributors

kahlstrm avatar mikaelsiidorow avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

kipubot's Issues

[FEAT] Add historical data

Possible ideas:

  • /week
    • display past week winners and pools
  • /month
    • display days with biggest pools during the past month and winners (mby top3?)
  • /alltime
    • display all time biggest pools and winners (n amount)

Pre-requisites for above commands:

  • store previous raffles in database
    • mby add ended boolean?
    • or just use end dates?
    • --> raffles need own id and can't use chat_id as pk

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.