Skip to main content

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


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)

Uploaded Source

Built Distribution

shabbat-0.1.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page