This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This script automatically starts and stops a Minecraft server's Docker container. | |
| If someone tries to join the container is started. | |
| If no players are online anymore the container is stopped. | |
| """ | |
| import socket | |
| import time | |
| import subprocess | |
| import logging | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import random | |
| import datetime | |
| import telepot | |
| from pprint import pprint | |
| from telepot.namedtuple import InlineKeyboardMarkup, InlineKeyboardButton, InlineQueryResultPhoto | |
| import database as db | |
| from redacted import API_KEY, CHAT_URL, BOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from app import app | |
| from urllib.request import urlopen | |
| import datetime | |
| from werkzeug.contrib.atom import AtomFeed | |
| import json | |
| url = "wwww.your-site.com" | |
| feed = AtomFeed("Sticky activiteiten", feed_url=f"{url}/koala.xml", url=url) |