A simple crypto bot doing cryto things.
Clone the project
git clone https://github.com/ArthurBeznik/discord_crypto_bot/tree/mainGo to the project directory
cd discord_crypto_botActivate the virtual environment
source venv/Scripts/activateInstall required dependencies
pip install -r requirements.txtBuild the dockerized prokect
docker-compose buildTo 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/
Start the bot
python src/main.pyEnjoy!
Start the containers
docker-compose upStop the containers
docker-compose stopStop and remove containers
docker-compose downAll the commands listed below are slash commands, and have their input(s) autocompleted upon typing.
/price single <crypto>
/price multiple <crypto1> <crypto2> ...y /alert create <crypto> <treshold>
/alert cancel <crypto>
/alert show /analyse technical <crypto>
/analyse advanced <crypto>
/analyse full <crypto>v1.0.2