def notice(message=None, email=False, tweet=False): """Sets or remove a site-wide notice.""" if email: print("Sending mail...") email_subscribers("Status update", message) if tweet: post_tweet(message) set_notice(message)
def tweet(message, silent=False): """Sends a update to Twitter.""" post_tweet(message) if silent is not True: print("Update posted.")