Giter Site home page Giter Site logo

rssnyder / discord-stock-ticker Goto Github PK

View Code? Open in Web Editor NEW
290.0 12.0 113.0 8.11 MB

Add live stock & crypto prices to your discord sidebar.

Home Page: https://rssnyder.github.io/discord-stock-ticker/

License: MIT License

Dockerfile 0.13% Makefile 0.13% Go 99.74%
discord stocks cryptocurrency bot python piku wallstreetbets wallstreet futures discord-stock-ticker

discord-stock-ticker's Introduction

discord-stock-ticker

Live stock and crypto tickers for your discord server.

With these bots you can track prices of...

  • Coins and Tokens on CoinGecko
  • Marketcaps of Coins and Tokens on CoinGecko
  • Stocks on Yahoo Finance
  • Tokens on Pancakeswap
  • Tokens on Dexlab
  • Tokens on 1Inch
  • NFT Collections on OpenSea, Solanart, Solart, and Magiceden
  • Gas on Ethereum, Binance, and Polygon Chains
  • Number of holders of a token on Ethereum and Binance Chains

๐Ÿพ 100 public tickers with over 15k installs across 3k discord servers!

๐Ÿ› ๏ธ Use theis project to host your own tickers, or pay for custom tickers to be made.

MIT License

GitHub last commit GitHub stars GitHub watchers

Contents

Preview

imageTICKERSBOARDSimageHOLDERSFLOOR

Join the discord server

Discord Chat

Support this project

Buy Me a Coffee

DigitalOcean Referral Badge

Love these bots? You can support this project by subscribing to the premium version, buying me a coffee, using my digital ocean referral link, or hiring me to write or host your discord bot!

Add free tickers to your servers

Stocks

bb | amc | nok | aapl | amzn | goog | sp500 | dow | nasdaq | tsla | dkng | spy | amd | nio | gold | silver | oil | pltr | pypl | sndl | russell | vix | arkk | msft | nflx | gme | dis | minisp500 | mininasdaq | minidow | nvda | fb | btc | coin | ndaq | qqq |

Crypto

bitcoin | ethereum | bitcoin-cash | dogecoin | monero | litecoin | ripple | polkadot | cardano | chainlink | stellar | iota | reef-finance | algorand | tezos | ethereum-classic | ravencoin | binancecoin | ecomi | aave | uniswap | bittorrent-2 | tron | vechain | illuvium | cosmos | zilliqa | matic-network | basic-attention-token | shiba-inu | pancakeswap-token | solana | raydium | safemoon | ftx-token | enjincoin | decentraland | fantom | coti | hedera-hashgraph | sushi | kusama | eos | terra-luna | chia | theta-token | tether | smooth-love-potion | axie-infinity | harmony | cryptoblades | my-defi-pet | mist | weth | plant-vs-undead-token | cryptozoon | binance-usd | splinterlands | wax | coinary-token | avalanche-2 | cryptocars | binamon | wanaka-farm |

Gas Prices

Ethereum Invite LinkBinance Smart Chain Invite LinkPolygon Invite Link

Premium

If you are interested in a ticker that isnt on this list, you can host your own using the code here or pay to have them made for you.

Price per bot (paid monthly): $1

Price per bot (paid yearly): $10

If you are interested please see the contact info on my github page and send me a messgae via your platform of choice (discord perferred). For a live demo, join the support discord linked at the top or bottom of this page.

Self-Hosting

Click here to watch a quick video tutorial on how to self-host these bots on linux. There is also an in depth written format gist here. If you are familar with ansible, I have a playbook here.

Pull down the latest release for your OS here. Extract. Run.

wget https://github.com/rssnyder/discord-stock-ticker/releases/download/v2.0.0/discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

tar zxf discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

./discord-stock-ticker

Setting options

There are options you can set for the service using flags:

  -address="localhost:8080": address:port to bind http server to.
  -cache=false: enable cache for coingecko
  -db="": file to store tickers in
  -frequency=0: set frequency for all tickers
  -logLevel=0: defines the log level. 0=production builds. 1=dev builds.
  -redisAddress="localhost:6379": address:port for redis server.
  -redisDB=0: redis db to use
  -redisPassword="": redis password

Systemd (linux)

The script here (ran as root) will download and install a discord-stock-ticker service on your linux machine with an API avalible on port 8080 to manage bots.

wget https://github.com/rssnyder/discord-stock-ticker/releases/download/v3.3.0/discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

tar zxf discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

mkdir -p /etc/discord-stock-ticker

mv discord-stock-ticker /etc/discord-stock-ticker/

wget https://raw.githubusercontent.com/rssnyder/discord-stock-ticker/master/discord-stock-ticker.service

mv discord-stock-ticker.service /etc/systemd/system/

systemctl daemon-reload

systemctl start discord-stock-ticker.service

If you need to make modifications to the setting of the service, just edit the /etc/systemd/system/discord-stock-ticker.service file on the line with ExecStart=. An example walkthrough can be found in this issue. Be sure to run systemctl daemon-reload to pick up and changes.

Now that you have the service running, you can add bots using the API exposed on the addres and port that the service runs on (this address is shown when you start the service).

Managing bots

All bots are controlled via an API interface and follow the same api template for management:

Available methods:

GET     # show all currently running bots and their configuration
POST    # create a new bot
PATCH   # restart a running bot
DELETE  # delete a running bot

If you are new to using an API to manage things, there are several ways to make API calls:

  1. Curl. This is a command available on virtually all Linux distros. Replace anything between < and > with the appropriate information.

The generic format for a curl API call:

curl -X <method> -H "Content-type: application/json" -d <inline json or from file> <hostname>:<port>/<bot type>

GET is the default method for curl, so you may omit the method. Also since you're just retrieving your bots, you can omit the -d flag as well.

Get a listing of all your bots:

curl localhost:8080/<bot type>

Create a new bot: (In this example, the bot configuration is located in a file 'btc.json', in the folder bots/crypo)

curl -X POST -H "Content-type: application/json" -d @bots/crypto/btc.json localhost:8080/ticker

Instructions for restarting running bots and deleting bots are forthcoming.

  1. Powershell:
$Body = @{
  name = "bitcoin"
  crypto = $true
  discord_bot_token = "xxxxxxxxxxxxxxxxxxxxxxxxx"
}
 
$Parameters = @{
    Method = "POST"
    Uri =  "127.0.0.1:8080/ticker"
    Body = ($Body | ConvertTo-Json) 
    ContentType = "application/json"
}

Invoke-RestMethod @Parameters
  1. postman

Stock and Crypto Price Tickers

bot type: ticker

Tracks stock or crypto prices. Uses Yahoo for stock or CoinGecko for crypto.

Bot Configuration (stock)

{
  "ticker": "pfg",                                  # string: symbol for the stock from yahoo finance
  "name": "2) PFG",                                 # string/OPTIONAL: overwrites display name of bot
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows. Set to " " to disable arrows.
  "currency": "aud",                                # string/OPTIONAL: alternative curreny
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "twelve_data_key": "xxx",                         # string/OPTIONAL: use twelve data as source, pass in api key
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Bot Configuration (crypto)

{
  "name": "bitcoin",                                # string: name of the crypto from coingecko
  "crypto": true,                                   # bool: always true for crypto
  "ticker": "1) BTC",                               # string/OPTIONAL: overwrites display name of bot
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows
  "currency": "aud",                                # string/OPTIONAL: alternative curreny
  "currency_symbol": "AUD",                         # string/OPTIONAL: alternative curreny symbol
  "pair": "binancecoin",                            # string/OPTIONAL: pair the coin with another coin, replaces activity section
  "pair_flip": true,                                # bool/OPTIONAL: show <pair>/<coin> rather than <coin>/<pair>
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "decimals": 3,                                    # int/OPTIONAL: set number of decimal places
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Stock and Crypto Price Tickerboards

bot type: tickerboard

Tracks multiple stock or crypto prices. Uses Yahoo for stock or CoinGecko for crypto.

Bot Configuration (stock)

{
  "name": "Stocks",                                 # string: name of your board
  "items": ["PFG", "GME", "AMC"],                   # list of strings: symbols from yahoo finance to rotate through
  "header": "1. ",                                  # string/OPTIONAL: adds a header to the nickname to help sort bots
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "arrows": true,                                   # bool/OPTIONAL: show arrows in ticker names
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Bot Configuration (crypto)

{
  "name": "Cryptos",                                # string: name of your board
  "crypto": true,                                   # bool: always true for crypto
  "items": ["bitcoin", "ethereum", "dogecoin"],     # list of strings: names from coingecko to rotate through
  "header": "2. ",                                  # string/OPTIONAL: adds a header to the nickname to help sort bots
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "arrows": true,                                   # bool/OPTIONAL: show arrows in ticker names
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Crypto Market Cap

bot type: marketcap

Tracks the marketcap of a coin. Uses CoinGecko for data.

Bot Configuration

{
  "name": "bitcoin",                                # string: name of the crypto from coingecko
  "ticker": "1) BTC",                               # string/OPTIONAL: overwrites display name of bot
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows. Set to " " to disable arrows.
  "currency": "aud",                                # string/OPTIONAL: alternative curreny
  "currency_symbol": "AUD",                         # string/OPTIONAL: alternative curreny symbol
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "decimals": 3,                                    # int/OPTIONAL: set number of decimal places
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Crypto Circulating Supply

bot type: circulating

Tracks the circulating supply of a coin. Uses CoinGecko for data.

Bot Configuration

{
  "name": "bitcoin",                                # string: name of the crypto from coingecko
  "ticker": "1) BTC",                               # string/OPTIONAL: overwrites display name of bot
  "currency_symbol": "BITCOIN",                     # string/OPTIONAL: alternative curreny symbol
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "decimals": 3,                                    # int/OPTIONAL: set number of decimal places
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Crypto Total Value Locked

bot type: valuelocked

Tracks the total value locked of a coin. Uses CoinGecko for data.

Bot Configuration

{
  "name": "bitcoin",                                # string: name of the crypto from coingecko
  "ticker": "1) BTC",                               # string/OPTIONAL: overwrites display name of bot
  "currency": "aud",                                # string/OPTIONAL: alternative curreny
  "currency_symbol": "AUD",                         # string/OPTIONAL: alternative curreny symbol
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "decimals": 3,                                    # int/OPTIONAL: set number of decimal places
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Gas Prices

bot type: gas

image

Track the gas price on:

  • Ethereum
  • Binance
  • Polygon
  • ..and many more

Uses Zapper for data. For now always uses the eip1559 chains.

Bot Configuration

{
  "network": "ethereum",                            # string: one of: ethereum, binance-smart-chain, or polygon
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Ethereum, BSC, or Polygon Token Holders

bot type: holders

HOLDERS

Track the number of token holders on Ethereum or Binance chains. Uses etherscan or bscscan for data.

Bot Configuration

{
  "network": "ethereum",                            # string: one of: ethereum, binance-smart-chain, or polygon
  "address": "0x00000000000000000000000000",        # string: address of contract for token
  "activity": "ethereum",                           # string: text to show in activity section of the bot
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

ETH/BSC/MATIC Token Price

bot type: token

Track the price of a token on Ethereum, Binance, or Polygon chains. Uses 1inch by default, or pancakeswap/dexlab if specified.

Bot Configuration

{
  "network": "ethereum",                            # string: network of token, options are ethereum, binance-smart-chain, or polygon
  "name": "my token",                               # string: display name of token
  "contract": "0x00000",                            # string: contract address of token
  "currency": "0x00000",                            # string/OPTIONAL: contract address of token to price against, default is USDC
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows. Set to " " to disable arrows.
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "source": "pancakeswap",                          # string/OPTIONAL: if the token is a BSC token, you can set pancakeswap here to use it vs 1inch; you can also set dexlab for solana tokens
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

OpenSea/Solanart NFT Collection Floor Price

bot type: floor

image

Track the floor price of an NFT collection on OpenSea, Solanart, Solsea or MagicEden

Bot Configuration

{
  "marketplace": "opensea",                         # string: one of: opensea, solanart, solsea or magiceden
  "name": "ethereum",                               # string: collection name/id from source
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows. Set to " " to disable arrows.
  "currency": "MATIC",                              # string/OPTIONAL: alternative curreny
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

Roles for colors

To enable color changing you will need to create three roles.

The first role is the role the tickers will appear under. It can be named anything you want. You need to check the Display role members seperatly from other online members option for this role, but do not assign a custom color for this role, leave it default.

Then you need to make two other roles. These roles need to be named exactly tickers-red & tickers-green. Do not check the Display role members seperatly from other online members option for these roles, but do assign colors to these roles, red and green (or whatever color you want to represent gain/loss) respectively.

The last two roles tickers-green and tickers-red need to be below the first role in the role list in your server settings. You should then add all your ticker bots to the first role.

roles example

Kubernetes

Thanks to @jr0dd there is a helm chart for deploying to k8s clusters. His chart can be found here

You can also use a simple deployment file:

apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    environment: public
  name: ticker-cardano
spec:
  replicas: 1
  selector:
    matchLabels:
      environment: public
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        environment: public
    spec:
      containers:
        - env:
            - name: CRYPTO_NAME
              value: cardano
            - name: DISCORD_BOT_TOKEN
              value: xxxxxxxxxxxxxxxxxxxxxx
            - name: FREQUENCY
              value: "1"
            - name: SET_COLOR
              value: "1"
            - name: SET_NICKNAME
              value: "1"
            - name: TICKER
              value: ADA
            - name: TZ
              value: America/Chicago
          image: ghcr.io/rssnyder/discord-stock-ticker:1.8.1
          name: ticker-cardano
          resources: {}
      restartPolicy: Always
status: {}

Louie

Since you have read this far, here is a picture of Louie at his favorite park:

PXL_20210424_185951005 PORTRAIT

discord-stock-ticker's People

Contributors

b-diggity avatar jr0dd avatar kremlin- avatar majesticbeast avatar mikoim avatar rickstaa avatar rssnyder avatar seflyx avatar stephaniehingtgen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-stock-ticker's Issues

[BUG]

Describe the bug
When i change the "currency" of an cryptobot, the bot dont get the variation of an crypto on the same currency. It keeps getting the usd variation.

To Reproduce
Steps to reproduce the behavior:

  1. add a bot in brl currency
  2. look at status, the variation in % match with usd variation

Expected behaviour
The bot should get the brl variation

[BUG] All BOT OFFLINE ??

All my Crypto-BOT is OFFLINE ^^

Do I have to restart them manually? This follows the monthly closing?

Hiiii Bro, thanks for the info.

Save ticker on db

I'm currently still learning linux so I'm not that familiar yet. I wanted to ask how will i add the -db setting so that I can save the tickers that I created.

I use this btw and I'm using a vps

wget https://github.com/rssnyder/discord-stock-ticker/releases/download/v3.3.0/discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

tar zxf discord-stock-ticker-v3.3.0-linux-amd64.tar.gz

mkdir -p /etc/discord-stock-ticker

mv discord-stock-ticker /etc/discord-stock-ticker/

wget https://raw.githubusercontent.com/rssnyder/discord-stock-ticker/master/discord-stock-ticker.service

mv discord-stock-ticker.service /etc/systemd/system/

systemctl daemon-reload

systemctl start discord-stock-ticker.service

bot type: board

In description board type is "board" but the type to select is "tickerboard"
I think is a little error in readme
Thank u so much for your work

[BUG] Holder error

I have been running Market cap and holder bots through your amazing repository for the last several months. Suddenly today my holder bot only displays "Holders" as its name where it should display just a number representing the amount of holders from etherscan. I did notice Etherscan has implemented a captcha on their site in the last few days and was wandering if this is something that needs fixed in an update or if there is something that can be done on my end. Thanks in advance! Also I am running this on linux

Anyone can help me?

--2022-06-08 09:28:46-- https://github.com/rssnyder/discord-stock-ticker/releases/download/v2.0.0/discord-stock-ticker-v3.3.0-linux-amd64.tar.gz Resolving github.com (github.com)... 20.205.243.166 Connecting to github.com (github.com)|20.205.243.166|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-06-08 09:28:46 ERROR 404: Not Found.

[BUG] ETH Gas

Describe the bug
A clear and concise description of what the bug is.

ETH Gas price does not show in discord sidebar

To Reproduce
Steps to reproduce the behavior:
I am able to link it to the server but in the sidebar it does not show
image

Expected behaviour
current ETH gas price would show

[BUG] How to install

Hello,

How do I install the bot, I click on the .exe program and its stuck on time="2021-04-24T18:12:03+01:00" level=info msg="Starting api server on 8080..." and where do I enter the bot token and stuff

[BUG]

image

"Watching..." works but the bot's nickname is like that since forever.

[NEW STOCK] crypto hbar

First off, awesome bot! I'd love to get support for the crypto hbar, if you need anything from me let me know :)

Can't DELETE crypto ticker after having just started it

Describe the bug
issuing a curl DELETE command fails to stop the bot monitoring that crypto/ticker. Issue reproduced on v3.9.7 and v3.10.0-beta.14. Issue NOT present in v3.4.0 (used to validate the yt video).

To Reproduce
Steps to reproduce the behavior:

  1. Command I used for Plugin crypto (ticker PLI):
    curl -X POST -H "Content-type: application/json" --data '{"name": "plugin","crypto": true,"ticker": "PLI","color": true,"decimals": 6,"nickname": true,"frequency": 10,"discord_bot_token": "MySuperSecretDiscordToken"}' localhost:8888/ticker

Logs (note the odd newline appended to the ticker):

level=info msg="Added ticker: PLI\n"
level=info msg="Using usd"
level=info msg="Watching crypto price for plugin"

  1. Command I used to stop monitoring the ticker:
    curl -X DELETE -H "Content-type: application/json" localhost:8888/ticker/plugin

Logs:
level=error msg="No ticker found: plugin"

Attempted plugin, PLI, pli, PLUGIN and various ways to try and call PLI with the newline escaped just seeing if I could get it to delete, with no luck.

Expected behaviour
I expect it to work like v3.4.0 and stop monitoring

level=debug msg="Got an API request to delete a ticker"
level=info msg="Deleted ticker PLUGIN"
level=info msg="Shutting down price watching for plugin"

Python (please complete the following information):

  • Version: 3.8.10 (also tried 2.7.x just to see if any different behavior)
  • OS: Ubuntu 20.04

[BUG] Bots are unable to join server

Describe the bug
An error message is displayed stating that the bot cannot join any more servers because it hasn't been verified.

To Reproduce
Steps to reproduce the behavior:

  1. Go to crypto
  2. Click on a currency
  3. Complete authorization
  4. See error
    image

Expected behaviour
Bot should be able to join servers

[BUG]

I cannot get the GME ticker to work. I used the website to easily add the bot to my discord server.

Create new bot failed

Hi,
I follow "Self-Hosting - Binary" procedure but I have a problem to create a new bot.
When I call my curl "curl -X POST -H "Content-type: application/json" -d @test.json localhost:8080/crypto" I have 404 page not found.

The service is on because when I stop it with "systemctl stop discord-stock-ticker.service" I have "Failed to connect to localhost port 8080: Connection refused" error.

What is my error? :)
Thanks

Works but slow!

Hello the bots are great, simple & easy!
However, its custom status market price doesn't change often. : (
Im aware its name changes only once an hour due to discords restrictions, but the custom status seems to get hung up a lot (as much as 30 minutes behind real time prices).
Would self hosting it make it better?

Anyways people in my server love the bots keep at it!!

[BUG]

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Python (please complete the following information):

  • Version: [e.g. 3.8]
  • OS [e.g. linux, windows]

Additional context
Add any other context about the problem here.

BTC, LTC, RIPPLE
Unable to add some crypto ticker bots due to an error message

This bot can't join more servers as it has not been verified or is requesting gateway intents is has not been verified for. Ask the bot's developer about https://dis.gd/bot-verification so you can add it to your server!

image

[NEW STOCK] Get currency from CoinGecko API

My suggestion is to get the price for cryptocurrencies in other currencies directly via CoinGecko API, instead of converting via Yahoo Finance. I know that a few thousandths of a cent in the price doesn't make a difference, but the members of my Discord always question me that Bot's price is different from Coingecko.

0.3745 -2.12%
slp_brl_3


https://www.coingecko.com/en/coins/smooth-love-potion/brl

0.379154 -1.2%
slp_brl_1


https://api.coingecko.com/api/v3/simple/price?ids=smooth-love-potion&vs_currencies=brl&include_24hr_change=true

0.379154 -1.2%
slp_brl_2


https://api.coingecko.com/api/v3/simple/supported_vs_currencies

["btc","eth","ltc","bch","bnb","eos","xrp","xlm","link","dot","yfi","usd","aed","ars","aud","bdt","bhd","bmd","brl","cad","chf","clp","cny","czk","dkk","eur","gbp","hkd","huf","idr","ils","inr","jpy","krw","kwd","lkr","mmk","mxn","myr","ngn","nok","nzd","php","pkr","pln","rub","sar","sek","sgd","thb","try","twd","uah","vef","vnd","zar","xdr","xag","xau","bits","sats"]

health checks

Adding a proper health check to query on /health would be a nice feature to have. If the api doesn't respond k8s can signal reboot.

[BUG] Docker - 401 Discord

Describe the bug
Hi, i can't add any ticker/gas or other with docker i always have a 401, and it seems this prevent me to delete it after too

To Reproduce
Steps to reproduce the behavior:

  1. Run a docker-compose up with compose file provided in the doc
  2. Post a new ticker
  3. First error 401
  4. See error

image

  1. Try to Delete any bot
  2. The app stop and can't send any more request, the bot does not delete

Expected behaviour
Connection to discord and deletion possible

Python (please complete the following information):

  • docker desktop 4.4.3 (73365)
  • OS Windows 11

GME price tracker bot for discord

hello im new to github so i apologize if im requesting this incorrectly. You stated on your page to reach out to you on github if we wanted premium service so here i am trying to reach out to you to get the gme price tracker discord bot up and running again. any helps would be greatly appreciated, thank you

[BUG] NDAQ

Describe the bug
unable to link to server
To Reproduce
Steps to reproduce the behavior:
attempt to link to server and this happens
image

The same token/coin but in different currency

I recently attempted to host a coin, such as bitcoin, in both USD and EUR, but realized that only the USD ticker would work, and the EUR ticker would not because there is already a ticker named bitcoin in USD.

Is there a way to make this work? The only way I can think of is to run two instances, one for USD and the other for EUR.

[BUG] GME bot seems to be down

Describe the bug
GME Bot is currently offline

To Reproduce
Steps to reproduce the behavior:

  1. add bot to server

Expected behaviour
The bot should be online

Additional context
Not sure if I am doing something wrong, but any help would be appreciated

Docker Img

Hi,
how to download the .img file from ghcr.io/rssnyder/discord-stock-ticker:3.9.6?
Thank u
Bye

Is it possibile to have the same endpoint pointing two different bots?

First of all, many thanks for this beauty.

I would love to display BTC price on two different servers.

It seems at the moment is not possible, without creating a new instance on a new port.

Something like this would be amazin:

curl -X POST -H "Content-Type: application/json" --data '{
  "name": "bitcoin",
  "crypto": true,
  "set_nickname": true,
  "frequency": 10,
  "discord_bot_token": [TOKEN_1, TOKEN_2]
}' localhost:8080/ticker

[NEW CRYPTO] Ronin

Can you add RON?
Do you need me to provide something?

Or tell me how to do it and I can make PR if it is possible.
Thank you

[BUG] spy

spy ticker is not working. whenever I attempt to link it to my server, this happens
image

Bot in multiple discord server

Hi, I have done my first bot with your fantastic work.
But I have a problem. I have included my bot in two server but only in first one change..
Which could be the problem?

image

image

I try in a third server and I have the same issue..

[HELP] loading previous tickers without redis server?

As the title suggests, is there a way to load or save previously set tickers?

I always need to re-configure the tickers whenever I reboot my VPS.
I saw the "-db" feature but don't actually know how the feature works.

I am currently running CENTOS 7 as my Operating System.

Bug VIX

Issue
unable to link to server
To Reproduce
Steps to reproduce the behavior:
attempt to link to server and then an error occurs.

image

TICKER BOT unable to change nickname

Describe the bug
Bot when added to discord server with correct permission is unable to update its own nicknames

ERRO[0961] Updating nickname: HTTP 404 Not Found, {"message": "Unknown Member", "code": 10007}
DEBU[0961] Set activity: -0.89 (-14.70%)
DEBU[0961] Fetching crypto price for looksrare
DEBU[0961] Set nickname in The Rueks Twitch Community: LOOKS \u2b0a $5.15
ERRO[0971] Updating nickname: HTTP 404 Not Found, {"message": "Unknown Member", "code": 10007}
DEBU[0971] Set activity: -0.89 (-14.70%)
DEBU[0971] Fetching crypto price for looksrare
DEBU[0972] Set nickname in The Rueks Twitch Community: LOOKS \u2b0a $5.15
ERRO[0982] Updating nickname: HTTP 404 Not Found, {"message": "Unknown Member", "code": 10007}
DEBU[0982] Set activity: -0.89 (-14.70%)
DEBU[0982] Fetching crypto price for looksrare
DEBU[0982] Set nickname in The Rueks Twitch Community: LOOKS \u2b0a $5.15
ERRO[0992] Updating nickname: HTTP 404 Not Found, {"message": "Unknown Member", "code": 10007}

Works on all other servers except one.

[Request] Add support for Solana network

Add support of Solana tokens using https://jup.ag/ which has an api to get quotes similar to 1inch
https://quote-api.jup.ag/v1/quote?inputMint=<in contract address>&outputMint=<out contract address>&amount=<amount>&slippage=<slippage>

Exit Code failed with result status=2

Hello:

First, thank you very much for providing this source code. Much fun learning and figuring it out. I'm receiving the following errors after I edit the systemd file; I update with the systemctl daemon-reload.

Is a service restart required before I attempt to load bots? I did that too, but it appears that also failed. Perhaps it didn't like my systemd file edit?

Screen Shot 2022-05-16 at 10 11 29 PM

Screen Shot 2022-05-16 at 10 10 10 PM

[BUG] curl localhost:9090/tickerboard is providing empty page

Describe the bug
When running curl localhost:9090/tickerboard you get only " { } " as result

To Reproduce
Steps to reproduce the behavior:

  1. launch a bot ticker using Docker
  2. Bot is running on Discord
  3. Above command gives that result

Expected behaviour
a list of tickers running

[BUG] Unable to add any ticker

Hey,
I installed latest version 3.7.2. When calling basic ticker function, I get an error:
root@name1:~/discord-stock-ticker# ./discord-stock-ticker
INFO[0000] Running discord-stock-ticker version v3.7.2...
WARN[0000] Will not be storing state.
INFO[0000] Starting api server on 0.0.0.0:8080...
INFO[0002] Added crypto: ethereum
panic: non-positive interval for NewTicker

goroutine 21 [running]:
time.NewTicker(0x0, 0x64)
/usr/local/go/src/time/tick.go:24 +0x151
main.(*Ticker).watchCryptoPrice(0xc0001ae2d0)
/home/riley/go/src/github.com/rssnyder/discord-stock-ticker/ticker.go:487 +0xb51
created by main.(*Ticker).Start
/home/riley/go/src/github.com/rssnyder/discord-stock-ticker/ticker.go:95 +0x3f

This is basic ticker function I called:
curl -X POST -H "Content-Type: application/json" --data '{
"name": "ethereum",
"crypto": true,
"set_nickname": true,
"discord_bot_token": "my bot token"
}' localhost:8080/ticker

I disabled FW to make sure its not connection issue, same issue.

can't update color and nickname[BUG]

Describe the bug
A clear and concise description of what the bug is.
i'm trying to add a new bot , however the result output shows false for both attributes.

image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Python (please complete the following information):

  • Version: [e.g. 3.8]
  • OS [e.g. linux, windows]

Additional context
Add any other context about the problem here.

[NEW STOCK] ETFM (FOMO CORP.)

Hello,

I would appreciate it if you add our stock symbol to your bot as we find it very useful for our shareholders in our Discord server. I am a Moderator over there and we might also be interested in one or two Premium bots. The one caveat would be we are changing our ticker symbol fairly soon to possibly IGOT. Thanks in advance!

[BUG] Price tickers 0.0

All bot tickers 0 value
I already tried two different host server both of them fetch 0 values
image

Display the correct currency format

When i modify a cryptobot currency, it still show the "usd" format for different currency.

In brl should be R$50,00, but is showing $50.00 for example.

A nice feature would be customize the currency format like we are able to customize the "ticker" nickname.

[NEW STOCK] ETFM (FOMO CORP.)

Hello,

I would appreciate it if you add our stock symbol to your bot as we find it very useful for our shareholders in our Discord server. The one caveat would be we are changing our ticker symbol fairly soon to possibly IGOT. Thanks in advance!

FOMO Corp Logo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.