/Coinbot

CryptoBot for Discord

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

CoinBot

CoinBot

PRs Welcome Codacy Badge

Discord Bots

If you Like CoinBot don't forget to upvote it on clicking on the widget above.

Coinbot is a Discord bot created in Python and used to display some useful informations about CryptoMarket trading.

If you want to test it or help me in the development, you can join this server :

Getting Started

The bot is ready to deploy. Just add your Bot Secret token you created with your discord dev account.

Prerequisites

You'll need python3.6 installed and some dependencies.

To Install Python3.6 you can follow this tutorial :

Install dependencies

If you do not have pip, you can use the following

curl https://bootstrap.pypa.io/get-pip.py | python3.6

Install all the required dependancies :

python3.6 -m pip install -r requirements.txt

Installation

You just have to install the dependies as seen above then put your secret Discord token (the Etherscan one is optionnal but if you don't put it the !balance command will not work) and launch main.py

python3.6 PathToCoinbot/main.py

If you want to run the bot on a VPS you should install Supervisor and run the bot on a supervisor instance. This way if the bot crashes supervisor will autorelaunch it.

supervisorctl start CoinBot

To see if the bot is running correctly just run the command !bot

!bot

The commands

!infos : List of all the available commands
!all [coin(s)] : Get the value of the coin on all exchanges it's listed on
!polo [coin(s)] : Get the value of the coin on Poloniex
!bnc [coin(s)] : Get the value of the coin on Binance
!topia [coin(s)] : Get the value of the coin on Cryptopia
!fnx [coin(s)] : Get the value of the coin on Bitfinex
!rex [coin(s)] : Get the value of the coin on Bittrex
!hit [coin(s)] : Get the value of the coin on HitBTC
!top : Get the highest gain and loss of the coins
!cmc : Get the MarketCap of all CryptoCoins
!btc : Get the value of the BTC on all major exchanges
!order [price][% win][% lose] :  To estimate a win/loss trade
Example : !order 750 5 10
!whale [coin] {Limit in BTC, based with 4 BTC}  :  Retrieve the Whale orders on the differents exchanges
Example : !whale xzc || !whale xzc 5
!name [name] :  Get the full name of the coin and some additionnal infos
Example : !name eth
!event [coin] :  Retrieve the incoming events. Adding a coin is optional
Example : !event  || !event eth
!bot :  Display some informations about me and the bot
Example : !bot
!convert [coin][quantity] :  To convert the coin value in BTC/USD
Example : !convert eth 10.245
!balance [coin] [Address]
NOTE: Only BTC and ETH (with ERC20 tokens) are supported yet.
Example : !balance eth 0x670B7A9497f79Ef57BbFFFB553d979E7aD225344
          !balance token 0x670b7a9497f79ef57bbfffb553d979e7ad225344
          !balance btc 1jc3V3T5mefuD9asa7en976NKVGssQuMq
!sum [url]{limit} :  Shorten an article from a website
Example : !sum www.url.com
!updates : Display the Changelog in your privates messages
Example : !updates

Donations

Donations are much appreciated. Thank you for your support. If you want to help me with this bot. You can donate to the following addresses

ETH(ERC20 friendly)  [abowallet.eth]
BTC  [1jc3V3T5mefuD9asa7en976NKVGssQuMq]
DOGE [D9zKYJgqnTWcu8ZCVzzKrqQkjzwuhymHh9]
LTC  [LQS415ftVrkSjjmFUyKNVBhY1fJzFLSKaz]
DASH [XkbrvfjnN1geyBJVe8igNwDYVFRPNWpRuz]

Author

License

This project is under the GNU General Public License as seen in license.md