Skip to content

A Discord Bot(webhook) written in Go and hosted as an AWS Lambda Function.

License

Notifications You must be signed in to change notification settings

suntong/aws-lambda-go-discord-rss

This branch is 2 commits behind gokg4/discord_bot_lambda:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e7e50f · May 12, 2023

History

14 Commits
May 12, 2023
May 12, 2023
May 11, 2023
May 12, 2023
May 11, 2023
May 11, 2023
May 12, 2023

Repository files navigation

GitHub GitHub code size in bytes GitHub repo size

Discord Bot Lambda

A Discord Bot(webhook) written in Go and hosted as an AWS Lambda Function. This application is designed to call the Google News RSS feed and post latest news articles to the discord bot based on given search query. We can automate the daily articles posting by setting up AWS EventBridge to schedule event triggers targetting the lambda function.

Reference Diagram:

reference diagram

Reference Links:

Install go from the official website - link.

AWS Lambda Documentation for Golang - link.

Google News RSS Feed usage blog - link.

Create your Discord Bot - link.

Discord Webhook Documentation - link.

Installation

Give a Try, clone this repository and run the following command in the terminal.

go run main.go

Build, Compile and Zip with the following command.

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go

zip -r function.zip main

Usage

Once built and compiled you can run from command line using the following command.

./main

Upload the Zip file to AWS Lambda Function.

Contributors

  • gokg4 - creator and maintainer

About

A Discord Bot(webhook) written in Go and hosted as an AWS Lambda Function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%