# TODO: MOVE TO EXAMPLE FOLDER
from time import sleep

from client import DiscorGttsClient
from pathlib import Path
import sys
from time import sleep

import requests


def get_coins():
    url = 'https://api.fomodd.io/superfilter'
    r = requests.get(url)
    data = r.json()
    binance = data['BINANCE']['coins']
    bittrex = data['BITTREX']['coins']

    coins = binance + bittrex
    return coins


client = DiscorGttsClient('0.0.0.0', 6666)


for coin in get_coins():
    print(coin)
    client.send_voice_msg(f'found {coin}')

# TODO: MOVE TO EXAMPLE FOLDER
from time import sleep

from client import DiscorGttsClient
from pathlib import Path
import sys
from time import sleep

import requests


def get_coins():
    url = 'https://api.fomodd.io/superfilter'
    r = requests.get(url)
    data = r.json()
    binance = data['BINANCE']['coins']
    bittrex = data['BITTREX']['coins']

    coins = binance + bittrex
    return coins


client = DiscorGttsClient('0.0.0.0', 6666)


for coin in get_coins():
    print(coin)
    client.send_voice_msg(f'found {coin}')

# TODO: MOVE TO EXAMPLE FOLDER