Skip to content

This project uses twitter API to catch @strangestone tweet (Tawawa on monday) and then uses telegram bot to send content of tweet for user or group.

License

Notifications You must be signed in to change notification settings

EKOISMYLOVE/CatchTawawa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatchTawawa

Introduction

This project is closed because twitter api doesn't support free access from 2023/02/09.

This project uses twitter API to catch @Strangestone tweet (Tawawa on monday) and then uses telegram bot to send content of tweet for user or group.

Uses cron to schedule for building on Github Actions.

Mandarin introduction : Link

Setup

  1. Create a telegram bot. How to Create telegram bot.
  2. Get bot id and user id(chat id). StackOverflow - Telegram Bot - how to get a group chat id?
  3. Create a twitter developer project and get bearer_token. Twitter developer Documentation
  4. Clone this project and push this project to your repo.
  5. Set three environment secrets. Please check secrets name and .github/workflows/main.yml parameters, make sure they are same. Using environments for deployment
  • TELEGRAM_TO : Your telegram userId or chatId.
  • TELEGRAM_TOKEN : Your telegram bot token.
  • TWITTER_BEARER_TOKEN : Your twitter bearer_token.
  1. Set Github Action and edit .github/workflows/main.yml to test. (cron parameter or option of "on")
  2. (optional) If you want to catch other twitter users' tweet, just edit parameter sample_rules and set condition, you can refer my project for DouKiChan(がんばれ同期ちゃん). Link

Package

These packages I use and refer, THANKS!!

About

This project uses twitter API to catch @strangestone tweet (Tawawa on monday) and then uses telegram bot to send content of tweet for user or group.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages