ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

How to build a Discord Bot to track Crypto Prices 24/7 and set Price Alerts (part 1) --- with Python

Автор: Andrew Fung

Загружено: 2021-07-06

Просмотров: 42429

Описание: Hello Everyone! My name is Andrew Fung, in this video, I will be showing you how you create a Crypto Bot in your discord server to track Crypto Prices and send user notifications in the form of messages to your devices. The crypto bot will be running 24/7 all the time as hosted by UpTimeRobot and will be constantly pinged every 5 minutes to keep the bot alive.

#discordbot #pricealert #cryptocurrency #python #replit
#cryptobot

Elevator Music:
Local Forecast - Elevator by Kevin MacLeod https://incompetech.com/
Promoted by MrSnooze    • Elevator Music I Muzak & Lift Music I No C...  
Creative Commons — CC BY 3.0 I https://goo.gl/Yibru5

Installation and Setup!
Coingecko API endpoint: https://api.coingecko.com/api/v3/coin...

Discord Python Documentation: https://discordpy.readthedocs.io/en/s...

UpTimeRobot service: https://uptimerobot.com

Discord Developer Portal:   / discord  

Source code for this project:
https://github.com/Andrew-FungKinHo/Y...

Check out my Github!
https://github.com/Andrew-FungKinHo

How I make my YouTube videos:
⌨️ Keyboard - Nuphy Air75 Mechanical Keyboard - https://amzn.to/3Xu4PD3
🎙 Microphone - MAONO A04 Professional Podcaster USB Microphone - https://amzn.to/3k8ocD5
🖱 Mouse - Microsoft Bluetooth Ergonomic Mouse - https://amzn.to/3CHhdHJ
🔌 Accessories - Laptop Docking Station for MacBook Pro - https://amzn.to/3CHi5Mv

Timestamps
0:00​ | Intro
0:47 | Discord Crypto Bot Demo
05:51 | Create a Discord Server and Bot
09:45 | Instantiate a Discord Client to run bot
14:40 | GetCryptoPrice and IsCryptoSupport functions
22:09 | Out tro

Full Code:
———————————————————————————————
import discord
import requests
from replit import db

getting crypto data
def getCryptoPrices(crypto):
URL = "https://api.coingecko.com/api/v3/coin..."
r = requests.get(url=URL)
data = r.json()

putting the cryptocurrencies and their prices in db
for i in range(len(data)):
db[data[i]['id']] = data[i]['current_price']

if crypto in db.keys():
return db[crypto]
else:
return None

check if a cryptocurrency is supported in this bot
def isCryptoSupported(crypto):
if crypto in db.keys():
return True
else:
return False

instantiate a discord client
client = discord.Client()

@client.event
async def on_ready():
print(f'You have logged in as {client}')
channel = discord.utils.get(client.get_all_channels(),name='general')

await client.get_channel(channel.id).send('bot is now online!')

called whether there is a message in the chat
@client.event
async def on_message(message):
if message.author == client.user:
return

if message.content.startswith('ya'):
await message.channel.send('yeet')

BOT_TOKEN = 'YOUR_TOKEN_HERE'
client.run(BOT_TOKEN)

———————————————————————————————

Feel free to drop a like and comment if you enjoy and video and let me know if you want me to do other types of programming videos ;) !!!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How to build a Discord Bot to track Crypto Prices 24/7 and set Price Alerts (part 1) --- with Python

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

How to build a Discord Bot to set and track Multiple Crypto Price Targets (part 2) --- with Python

How to build a Discord Bot to set and track Multiple Crypto Price Targets (part 2) --- with Python

How to build an Interactive Ad-scraping Keyword Analysis Web App with Streamlit Python & ScraperAPI

How to build an Interactive Ad-scraping Keyword Analysis Web App with Streamlit Python & ScraperAPI

Build a Real-Time Crypto Trading Bot in under 100 Lines of Code

Build a Real-Time Crypto Trading Bot in under 100 Lines of Code

Solidity Tutorial - A Full Course on Ethereum, Blockchain Development, Smart Contracts, and the EVM

Solidity Tutorial - A Full Course on Ethereum, Blockchain Development, Smart Contracts, and the EVM

How to plot moving race bars animation — Data Visualisation with Python and Pandas

How to plot moving race bars animation — Data Visualisation with Python and Pandas

How To Make A GREAT Discord Server (Full Setup)

How To Make A GREAT Discord Server (Full Setup)

Как создать бота для торговли криптовалютой в режиме реального времени на Python (API Binance) с ...

Как создать бота для торговли криптовалютой в режиме реального времени на Python (API Binance) с ...

Build Your First Blockchain App Using Ethereum Smart Contracts and Solidity

Build Your First Blockchain App Using Ethereum Smart Contracts and Solidity

Merry Christmas 2025🎄🎅The 50 Most Beautiful Christmas Songs ❄️ Top Christmas Music

Merry Christmas 2025🎄🎅The 50 Most Beautiful Christmas Songs ❄️ Top Christmas Music

Can Python Facial Recognition Prove Silver Medalists Are Less Happy Than Bronze? You’ll Be Surprised

Can Python Facial Recognition Prove Silver Medalists Are Less Happy Than Bronze? You’ll Be Surprised

Как создать ЭПИЧНЫЙ сервер Discord (РУКОВОДСТВО)

Как создать ЭПИЧНЫЙ сервер Discord (РУКОВОДСТВО)

User authentication and customized messages — Creating a CRM Telegram bot with Notion API (EP.3)

User authentication and customized messages — Creating a CRM Telegram bot with Notion API (EP.3)

Python Selenium Tutorial #1 - Web Scraping, Bots & Testing

Python Selenium Tutorial #1 - Web Scraping, Bots & Testing

Как создать бота Telegram на Python

Как создать бота Telegram на Python

Top 5 DISCORD BOTS You NEED In Your Discord Server!

Top 5 DISCORD BOTS You NEED In Your Discord Server!

Intelligent AI Chatbot in Python

Intelligent AI Chatbot in Python

Code a Discord Bot with Python - Host for Free in the Cloud

Code a Discord Bot with Python - Host for Free in the Cloud

How to Fully Setup the ULTIMATE Discord Server!

How to Fully Setup the ULTIMATE Discord Server!

Finding the Most Profitable Keywords by Plotting Competitor Analysis Graphs — with Python Streamlit

Finding the Most Profitable Keywords by Plotting Competitor Analysis Graphs — with Python Streamlit

How to make a Discord verification system (2021)

How to make a Discord verification system (2021)

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]