Git Product home page Git Product logo

cacaotasu's Introduction

cacaotasu

かかおたす

取引所の価格を取得してくるdiscord botです。

現時点で対応しているのは https://www.unnamed.exchange/ だけです。

随時追加予定。

起動方法

.env.exampleファイルを.envにリネームして必要なものを書き込んでください。

# botのトークンをしてします
BOT_TOKEN=replace your bot token

# 24時間変動率によってembedに表示する画像のURLを指定します。
IMAGE_NORMAL=  # -2.5%〜2.5%
IMAGE_HIGH=    #  2.5%〜 25%
IMAGE_HIGH2=   #   25%〜 50%
IMAGE_HIGHEST= #   50%〜
IMAGE_LOW=     #  -25%〜-2.5%
IMAGE_LOW2=    #  -50%〜- 25%
IMAGE_LOWEST=  #  -50%以下

# embedのタイトル文字列
DESCRIPTION_JA=xxxxの価格情報
DESCRIPTION_EN=Price of xxxx

#取引所のURL
EXCHANGE_URL=

# tickerで指定する銘柄コード
BASE=DOGE
TARGET=

.envを正しく書き換えた後に

python bot.py

で起動します。

docker-composeでも動かせます。

docker-compose up -d
docker-compose exec app bash
python bot.py

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.