Skip to content

Receive a Programming Joke via Telegram Bot everyday @ 9pm, 12pm and 5pm (SG Time, GMT +8)

Notifications You must be signed in to change notification settings

celestk/gitactions

Repository files navigation

gitActions

Hi, this is my GitActions project.

A Telegram Bot will receive a random Programming Joke 3 times a day.

1. Create the Node JS app

    - Save jokes in a json file
    - Write javascript code to extract a random joke

2. Create Telegram Bot

    - Chat with @BotFather to create a bot
    - Save API keys and your telegram userID

3. Install node-telegram-bot-api and dotenv

    - Install both packages using yarn/npm
    - Create a .env file to save the telegram token and telegram chat id
    - Add "send message" function to the code
    - Test the Bot on local machine

4.Create Github Workflow

    - upload files
    - in yaml file, install node, run index.js and set env to extract keys from secrets
    - store telegram API key and teltegram id in github secrets
    - schdule to run on 9am, 12pm and 5pm

Result:

update

About

Receive a Programming Joke via Telegram Bot everyday @ 9pm, 12pm and 5pm (SG Time, GMT +8)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published