Skip to content

This is a Python-based Discord bot that can chat with users, play music, share memes and dog images, translate text, and fetch news. It uses APIs like OpenAI, YouTube-DL, Google Translate, and News API to provide these features. Users can activate the bot by sending commands prefixed with "$" in any Discord server where it is installed.

License

Notifications You must be signed in to change notification settings

forceCpp/openDiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

you need to have python and ffmpeg installed

git clone https://github.com/forceCpp/openDiscordBot.git
cd  openDiscordBot
pip install -r requirements.txt

setup

add this to the .env file

if you cant find the .env file it might be hidded

API_KEY =your_openai_api_key
TOKEN=discord_token
NEWS_API_KEY=news_api_key
OPEN_WEATHER_KEY=open_weather_key

you can create a discord bot and get you token at https://discord.com/developers/applications for a openai API key visit https://beta.openai.com/signup/ for news api visit https://newsapi.org/

only Requests 1,000 are allowed per day for the news api

for the open weather API key visit https://openweathermap.org/appid

Run

Windows python main.py

Linux/Mac python3 main.py

preview

Watch the video

Watch the video

try

give the bot a try

https://discord.com/api/oauth2/authorize?client_id=1068497688628305970&permissions=8&scope=bot

issues

$translate does not work properly

$play you cant play soutube shorts and the bot wont disconnect automatically

usage

you can use the $doc command for the documentation

all other information is hier available

About

This is a Python-based Discord bot that can chat with users, play music, share memes and dog images, translate text, and fetch news. It uses APIs like OpenAI, YouTube-DL, Google Translate, and News API to provide these features. Users can activate the bot by sending commands prefixed with "$" in any Discord server where it is installed.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published