Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
/ asahi-bot Public archive

A bot patrols the admissions page of the Graduate School of Information Science and Technology, the University of Tokyo and notifies you of updates via Slack.

Notifications You must be signed in to change notification settings

kasegao/asahi-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asahi-bot

A bot patrols the admissions page of the Graduate School of Information Science and Technology, the University of Tokyo and notifies you of updates via Slack.

Requirement

If you don't have an AWS account, you'll need to create an account.

Install

Prepare a Slack Integration, a S3 Bucket and a Lambda Function.

Create config/asahi.ini and describe as follows.

[slack]
webhook_url = https://hooks.slack.com/services/XXXXXXXX

[s3]
bucket_name = hoge
file_s3 = fuga

Run build.sh to create lambda_function.zip

$ bash build.sh

Upload lambda_function.zip to Lambda and set as follows.

  • Runtime: Python 3.7
  • Handler: bot.lambda_handler

Set CloudWatch Events to run periodically. If you want to run it every 30 minutes, see below.

cron(0/30 * * * ? *)

Finally, run the Test Event only once to initialize it. The event configuration file can be something like the following.

{
  "key1": "value1"
}

About

A bot patrols the admissions page of the Graduate School of Information Science and Technology, the University of Tokyo and notifies you of updates via Slack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published