mirror of
https://github.com/narkoz/hacker-scripts
synced 2025-08-23 02:47:14 +00:00
parent
056e9ec84b
commit
c6373cc762
@ -13,9 +13,9 @@ today = datetime.date.today()
|
||||
if today.strftime('%A') in ('Saturday', 'Sunday'):
|
||||
sys.exit()
|
||||
|
||||
# exit if no sessions with my username are found
|
||||
# exit if sessions with my username are found
|
||||
output = subprocess.check_output('who')
|
||||
if 'my_username' not in output:
|
||||
if 'my_username' in output:
|
||||
sys.exit()
|
||||
|
||||
# returns 'None' if the key doesn't exist
|
||||
@ -37,7 +37,7 @@ client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)
|
||||
|
||||
client.messages.create(
|
||||
to=number_of_boss,
|
||||
from=my_number,
|
||||
from_=my_number,
|
||||
body="Gonna work from home. " + random.choice(excuses)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user