Skip to content
This repository has been archived by the owner on Jul 17, 2021. It is now read-only.

rssnyder/discord-crypto-gas-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-crypto-gas-price

⚠️This project has been merged with discord stock tickers.⚠️

a discord bot to display the current reccomended gas amount for ethereum, binance smart chain, or polygon transactions

Ethereum Demo Gif Binance Smart Chain Demo Gif Polygon Demo Gif

Support

Buy Me a Coffee Discord Chat

Add to your discord server (click image)

Ethereum Invite Link Binance Smart Chain Invite Link Polygon Invite Link

Self Host

Self hosting allows you to update the price in the bot name rather than the activity on the public versions.

Binary

Download the latest binary from the release page.

Or build from source:

git clone https://github.com/rssnyder/discord-crypto-gas-price.git

cd discord-crypto-gas-price

go build -o discord-crypto-gas-price

Create a bot in the discord dev portal, and grab the token. When you add it to your server, be sure to give it "Change Nickname" permissions.

Run the bot with the nessesary settings:

  -frequency int
        seconds between gas price cycles (default 5)
  -network string
        ethereum, binance-smart-chain, or polygon
  -setNickname
        wether to set nickname of bot
  -token string
        discord bot token
./discord-crypto-gas-price network 'ethereum' -token 'xxxxxxxxxxx' -setNickname

You can also use the template discord-crypto-gas-price.service file to install it as a systemd service.

Fill in your discord bot token in the file, and add any extra arguments you need.

cp discord-crypto-gas-price.service /etc/systemd/system/

mkdir -p /etc/discord-crypto-gas-price

cp discord-crypto-gas-price /etc/discord-crypto-gas-price/

systemctl daemon-reload 

systemctl start discord-crypto-gas-price.service 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages