Skip to content

davidgomesdev/LeagueOfDravenBot

Repository files navigation

LeagueOfDravenBot

This queries the Riot Game's API to get the current free champion rotation, then sends it to a discord server (in Kotlin ❤)

Configuration

Configure these (the ones without default are required) in (by priority):

  • For AWS Lambda, by priority:
    • Event: the json that is provided when executing the function example
    • Environment variables: the yaml provided when building the function, these are configured in Variables of template.yaml. example
      • Note: prepend the variable name inside each class like so bot__mentionEveryone.
  • Normal Java run:
    • Environment variables in a application.yaml example

Message styles

Click here to view

EmojisOnOwnLine

EmojisOnOwnLine

SameLine

SameLine

SeparateLines

SeparateLines

EmojisOnly

EmojisOnly

Cute image from Wallpaper Access.

Local Java run

gradle shadowJar

To run the jar, in build/libs/:

java -jar LeagueOfDravenBot.jar

Local Lambda run

Copy template-sample.yaml to template.yaml and fill it.

Build: sam build

Copy event-sample.json to event.json and optionally fill it.

Run: sam local invoke "LeagueOfDraven-Bot-Kotlin" -e event.json

Or the runLambdaLocally task.

Deploy

Copy template-sample.yaml to template-prod.yaml and fill it.

Build: sam build

Deploy: sam deploy --guided

After the first deploy, the guided arg can be ommited. Or the deployLambda task can be used.

About

This queries the Riot Game's API to get the current free champion rotation, then sends it to a discord server (in Kotlin ❤)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages