Giter Site home page Giter Site logo

votenotifyer's Introduction

I don't update this project and it's trash anyways so I decided to archive it.
This was one of my first Python projects and tbh probably last (I don't like python).


VoteNotifyer

Version License: MIT

VoteNotifyer is program to help you remind when you can vote for Minecraft servers such as minecraftservers.org, minecraft-mp.com and many more...

Screenshots:

preview_1

Install

Without git

Choose this option if you want pure source and you're not going to contribute to the repo.

To download source code this way click here.

With git

git clone https://github.com/Hirashi3630/VoteNotifyer.git

or with pip

pip install git+https://github.com/Hirashi3630/VoteNotifyer.git@[master or other branch]

Mics

Usage:

  1. edit config.json (how?)
  2. run python main.py

Config:

default config.json file can be found here

  • "repeat-interval" - As soon as you can vote, the program will notify you every X second
    • type: int (number)
    • default: 5 - it will notify you every fifth second
    • disabled: -1
  • "scraper-file" - Name of scraper script file (without .py)
    • type: string (text)
    • default: czech-craft-eu
    • disabled: N/A
  • "scraper-file-par" - Parameter for scraper file (currently used for server name)
    • type: string (text)
    • default: skymc
    • disabled: N/A
  • "modules" - Settings for each module

Modules:

Modules are located in /Modules folder.

You can add / remove / edit each module without changing code.

How to add module

To add new module create new .py file in /Modules folder.

Example:

file *.py:

def Start(cfg):
    print('Hello World')

modules in config.json:

{
    "modules": {
        "NameOfFile": {
          "enabled": true,
          "my-parameter": "value123"
        }
    }
}

note: name of module must be same as name of file


Config usage:

The cfg parameter is used for accessing module settings in config.json like this:

def Start(cfg):
    value = cfg['my-parameter']

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

btw this code is shit

Author

Hirashi3630

License

This project is MIT licensed.

votenotifyer's People

Contributors

hirashi3630 avatar

Watchers

James Cloos avatar  avatar

votenotifyer's Issues

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.