No description
Find a file
2021-07-16 14:57:56 -05:00
.github/workflows inital work 2021-06-22 15:46:03 -05:00
discord-bsc-gas-price.service inital work 2021-06-22 15:46:03 -05:00
gas.go inital work 2021-06-22 15:46:03 -05:00
go.mod inital work 2021-06-22 15:46:03 -05:00
go.sum inital work 2021-06-22 15:46:03 -05:00
main.go inital work 2021-06-22 15:46:03 -05:00
README.md Update README.md 2021-07-16 14:57:56 -05:00

discord-bsc-gas-price

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

a discord bot to display the current reccomended gas amount for binance smart chain transactions

Live Demo Gif

Support

Buy Me a Coffee Discord Chat

Add to your discord server (click image)

Gas Price

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-bsc-gas-price.git

cd discord-bsc-gas-price

go build -o discord-bsc-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)
  -setNickname
        wether to set nickname of bot
  -token string
        discord bot token
./discord-bsc-gas-price -token 'xxxxxxxxxxx' -setNickname

You can also use the template discord-bsc-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-bsc-gas-price.service /etc/systemd/system/

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

cp discord-bsc-gas-price /etc/discord-bsc-gas-price/

systemctl daemon-reload 

systemctl start discord-bsc-gas-price.service