Serverless based on github actions as a crone job for posting daily memes to a slack channel from thecodinglove.com
and any reddit
channels you will assign to the REDDIT_CHANNELS
in repo Secretes
- Create a slack app https://api.slack.com/apps
- Go to Slack apps
OAuth & Permissions
>Bot Token Scopes
- Give it permission
files:write
- Invite the app you created to the channel you want to post in memes
/invite @{YOUR_BOT_NAME}
- Fork this repo
- Go to forked repo
Settings
>Secretes
https://github.com/{USERNAME}/slack-daily-memes/settings/secrets/actions- Add
SLACK_TOKEN
: slack bot secret token - Add
SLACK_CHANNELS
: channel names or ids comma separated - Add
REPO
: repo name{USERSNAME}/slack-daily-memes
- Add
REPO_ACCESS_TOKEN
: create GitHub token with permissionpublic_repo
- Optional Add
REDDIT_CHANNELS
: to fetch memes from reddit channels you want comma seprated ex.workchronicles,ProgrammerHumor
- Add
P.S to make sure it is configured correctly go to https://github.com/{USERNAME}/slack-daily-memes/actions/workflows/main.yml
And click Run Workflow
to trigger it manualy.