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 is program to help you remind when you can vote for Minecraft servers such as minecraftservers.org, minecraft-mp.com and many more...
- Supported servers:
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]
- edit
config.json
(how?) - run
python main.py
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
- type:
- "scraper-file" - Name of scraper script file (without
.py
)- type:
string
(text) - default:
czech-craft-eu
- disabled: N/A
- type:
- "scraper-file-par" - Parameter for scraper file (currently used for server name)
- type:
string
(text) - default:
skymc
- disabled: N/A
- type:
- "modules" - Settings for each module
Modules are located in /Modules
folder.
You can add / remove / edit each module without changing code.
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']
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
btw this code is shit
Hirashi3630
- Github: @Hirashi3630
- Discord: Hirashi#3630
This project is MIT licensed.