Identify whether the current date and time is Saturday or not.
Project description
is shabbat
a simple module to save the shabbat in your code!
example of a telegram bot:
"""
an example of telegram bot that will not work in shabbat!
"""
from pyrogram import Client, filters, types
from shabbat import Shabbat
app = Client("my_account")
s = Shabbat()
@app.on_message(filters.incoming)
def shabbat_handler(_, m: types.Message):
if s.is_shabbat():
return m.reply_text("Today is Shabbat! send me your messages after that!")
app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shabbat-0.1.0.tar.gz
(2.8 kB
view hashes)