This is a discord chat bot which i make for my discord channel, the bot can play music, give news from some specific youtube channels and also you can chat with him (as Simsimi) when you feel bored. I name this chat bot " Phóng viên Lê Hồng Quang " - The name of a popular reporter in Vietnam. You can search for him on the google if you want to know more about him :)
First, you have to clone the repository by:
git clone https://github.com/HotPotatoes0210/Discord-Botinstall the requirements.txt :
pip install requirements.txtimport discord
from discord.ext import commands, tasks
import requests
import re
import yt_dlp
import asyncio
from datetime import datetime, timedelta
BOT_TOKEN = "PASTE YOUR DISCORD BOT TOKEN HERE" # Discord Bot_Token
CHANNEL_ID = "YOUR DISCORD ROOM CHANNEL" #Discord Room Channel ID
FFMPEG_OPTIONS = {'options': '-vn'}
YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist': True}
CHECK_INTERVAL = 100 #Setting for the latest video within 10 minute lateMake sure to paste your bot_token and channel_id on the code so it can be connected to your discord bot
After that you can run the server:
python main.pyPull requests are welcome. For major changes please open an issue first to discuss what you would like to change. Enjoy coding :)