Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
/ VoteNotifyer Public archive

Here to help you remind when you can vote for Minecraft servers!

License

Notifications You must be signed in to change notification settings

Hirashi3630/VoteNotifyer

Repository files navigation

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.

About

Here to help you remind when you can vote for Minecraft servers!

Resources

License

Stars

Watchers

Forks

Languages