/osrs-discord-bot-js

An OSRS Discord bot that uses slash commands.

Primary LanguageJavaScriptMIT LicenseMIT

osrs-discord-bot-js

License: MIT Deploy to Lambda Sync commands Update tradeable items

Description

An OSRS Discord bot that uses slash commands. Deployed to an AWS Lambda instance and triggered using an API Gateway. This project uses Github Actions to sync commands and deploy to the AWS Lambda.

This bot was originally implemented using Python and did not take advantage of slash commands. There was uncertaintly that development will continue on discord.py and so I have decided to rewrite the bot using JavaScript. I have taken this opportunity to switch to using slash commands allowing me to use a combination of AWS API Gateway and AWS Lambda to have the bot up 24/7. Github Actions are used to sync any new commands or changes to commands as well as push any src folder updates to the AWS Lambda.

Commands

  • /wiki - Takes a query and searches the OldSchool Runescape Wiki for the top 3 related pages
  • /itemid - Takes an item name, searches a list of tradeable items for matches and returns the top 3 matches
  • /price - Takes an item ID and returns the latest high and low prices from the OSRS Wiki Prices API
  • /trend - Takes an item ID and timestep and returns a chart using QuickChart displaying the price timeseries for 300 timesteps
  • /tracker - Takes a username and time period and returns the XP gains using the WiseOldMan API