Skip to content

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetBot

About

This is a simple SlackBot that posts a daily LeetCode question via Slack.

Deploy

  1. Head to api.slack.com to create a new OAuth key

  2. Press the Create New App button

  3. Choose From Manifest

  4. Copy the following manifest into the YAML section:

    _metadata:
      major_version: 1
      minor_version: 1
    display_information:
      name: LeetBot
    features:
      bot_user:
        display_name: LeetBot
        always_online: true
    oauth_config:
      scopes:
        bot:
          - channels:join
          - chat:write
    settings:
      org_deploy_enabled: false
      socket_mode_enabled: false
      token_rotation_enabled: false
    
  5. Press Install to Workspace to generate the key

  6. Invite the bot to the channel you wish to post in

  7. Configure samconfig.toml and deploy the bot against the channel, either with the SAM build/deploy application VS Code task or:

    uv export --no-dev --no-hashes --no-emit-project -o leetbot/requirements.txt
    sam build && sam deploy
    

    SAM installs the Lambda's dependencies from leetbot/requirements.txt, which is generated from uv.lock and not committed. Skipping the export deploys a Lambda without slack_sdk.

  8. Consider cron-ing the service to run at desired interval

About

Daily Slack study reminder bot

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages