Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Build

Build, Compile and Zip with the following command.

GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -tags lambda.norpc -o bootstrap main.go

zip myFunction.zip bootstrap

Usage

Upload the Zip file to AWS Lambda Function.

Create an AWS EventBridge schedule event to trigger the lambda function - link

Contributors

  • gokg4 - creator and maintainer

About

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

Topics

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages