Skip to content

ArthurBeznik/discord_crypto_bot

Repository files navigation

CryptoBot

A simple crypto bot doing cryto things.

Installing

Clone the project

  git clone https://github.com/ArthurBeznik/discord_crypto_bot/tree/main

Go to the project directory

  cd discord_crypto_bot

Activate the virtual environment

  source venv/Scripts/activate

Install required dependencies

  pip install -r requirements.txt

Docker Installation

Build the dockerized prokect

  docker-compose build

Environment Variables

To run this project, you will need to add the following environment variables to your .env file in the root of the project (see .env-template)

DISCORD_BOT_TOKEN       - Token of your Discord bot
DISCORD_GUILD_ID        - ID of your discord server (aka guild)
DATABASE_URL            - URL to your database
CHATGPT_API_KEY         - API key for OpenAI
ASK_CHAT_CHANNEL_ID     - ID of the channel to send ask commands
NEWS_API_KEY            - API key for https://newsapi.org/
CMC_API_KEY             - API key for https://coinmarketcap.com/
CG_API_KEY              - API key for https://www.coingecko.com/

Run Locally

Start the bot

  python src/main.py

Enjoy!

Using Docker

Start the containers

  docker-compose up

Stop the containers

  docker-compose stop

Stop and remove containers

  docker-compose down

Commands

All the commands listed below are slash commands, and have their input(s) autocompleted upon typing.

Prices

  /price single <crypto>
  /price multiple <crypto1> <crypto2> ...y

Alerts

  /alert create <crypto> <treshold>
  /alert cancel <crypto>
  /alert show

Analysis

  /analyse technical <crypto>
  /analyse advanced <crypto>
  /analyse full <crypto>

Authors

@ArthurBeznik

Version

v1.0.2

About

A Discord Crypto Bot with commands related to crypto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages