This file contains 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
__author__ = 'Jaken' | |
def cigar_party(cigars, is_weekend): | |
if is_weekend and cigars >= 40: | |
return True | |
elif is_weekend and cigars < 40: | |
return False | |
elif not is_weekend and cigars < 40 and cigars > 60: | |
return False |
This file contains 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
__author__ = 'Jaken' | |
def alarm_clock(day, vacation): | |
if not vacation and day >=1 and day <=5: | |
return "7:00" | |
elif (not vacation) and (day == 0 or day == 6): | |
return "10:00" | |
elif vacation and day == 0 or day ==6: | |
return "off" | |
elif vacation and day >=1 and day <=5: |
This file contains 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
__author__ = 'Jaken' | |
def squirrel_play(temp, is_summer): | |
if is_summer and temp >= 60 and temp <=100: | |
return True | |
elif not is_summer and temp >= 60 and temp <= 90: | |
return True | |
else: | |
return False |
This file contains 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
name: Work Stats Readme | |
on: | |
workflow_dispatch: | |
schedule: | |
# Runs every 2 hours | |
- cron: "0 */2 * * *" | |
jobs: | |
update-readme: |
This file contains 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
name: Run bot | |
on: | |
workflow_dispatch: | |
schedule: | |
# Runs every 2 hours | |
- cron: "0 */2 * * *" | |
jobs: | |
prep: |
This file contains 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 os | |
import praw | |
from supabase_py import create_client, Client | |
reddit = praw.Reddit( | |
username = os.environ.get('REDDIT_USERNAME'), | |
password = os.environ.get('REDDIT_PASSWORD'), | |
client_id = os.environ.get('API_CLIENT'), | |
client_secret = os.environ.get('API_SECRET'), | |
user_agent = "Scooby Searcher Bot" |
This file contains 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 os | |
import praw | |
from supabase_py import create_client, Client | |
reddit = praw.Reddit( | |
username = os.environ.get('REDDIT_USERNAME'), | |
password = os.environ.get('REDDIT_PASSWORD'), | |
client_id = os.environ.get('API_CLIENT'), | |
client_secret = os.environ.get('API_SECRET'), | |
user_agent = "Scooby Searcher Bot" |
This file contains 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 os | |
import praw | |
reddit = praw.Reddit( | |
username = os.environ.get('REDDIT_USERNAME'), | |
password = os.environ.get('REDDIT_PASSWORD'), | |
client_id = os.environ.get('API_CLIENT'), | |
client_secret = os.environ.get('API_SECRET'), | |
user_agent = "Scooby Searcher Bot" | |
) |
This file contains 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
API_CLIENT=<YOUR_API_CLIENT> | |
API_SECRET=<YOUR_API_SECRET> | |
REDDIT_USERNAME=<YOUR_REDDIT_USERNAME> | |
REDDIT_PASSWORD=<YOUR_REDDIT_PASSWORD> | |
SUPABASE_KEY=<YOUR_SUPABASE_KEY> | |
SUPABASE_URL=<YOUR_SUPABASE_URL> |
This file contains 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 os | |
import praw | |
from supabase_py import create_client, Client | |
reddit = praw.Reddit( | |
username = os.environ.get('REDDIT_USERNAME'), | |
password = os.environ.get('REDDIT_PASSWORD'), | |
client_id = os.environ.get('API_CLIENT'), | |
client_secret = os.environ.get('API_SECRET'), | |
user_agent = "Scooby Searcher Bot" |
NewerOlder