Skip to content

Discord price bot using jup_ag, serenity-rs and shuttle.rs

Notifications You must be signed in to change notification settings

andrei-1111/jup-discord-price-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Price Bot

An experimental project that uses Rust libraries to create a Discord bot to display crypto token prices from https://jup.ag/ The bot displays the USD equivalent of a given token.

Required env variables:

  • DISCORD_TOKEN: Discord bot token
  • CRYPTO_TOKEN: Pubkey of a token from Jup - https://jup.ag/
  • CRYPTO_TOKEN_NAME: Name of token i.e. BTC, ETH, SOL
  • GUILD_ID: ID of the discord channel

Important crates used:

Deployment

# Initialize `shuttle` configurations
# Prjects will be hosted at ${project_name}.shuttleapp.rs
cargo shuttle init --serenity

# Start
cargo shuttle project start

# Run the program locally 
cargo shuttle run

# Deploy and run the program 
cargo shuttle deploy

About

Discord price bot using jup_ag, serenity-rs and shuttle.rs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages