Skip to content

trandaiviethung2001/Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord chat bot

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 :)

Installation

First, you have to clone the repository by:

git clone https://github.com/HotPotatoes0210/Discord-Bot

install the requirements.txt :

pip install requirements.txt

Usage

import 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 late

Make 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.py

Contributing

Pull requests are welcome. For major changes please open an issue first to discuss what you would like to change. Enjoy coding :)

About

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 :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors