TOKEN= <TOKEN_BOT>
API_NEWS= <API newsapi.org>
π Bot updates news about IT and programming with Update every hour
fenv clone https://github.com/<User Name Github>/bot-news-it-discord.git
cd bot-news-it-discord
cd bot-news-it-discord
# create virtualenv auto name
fenv onlyenv
# install package in requirements.txt
fenv install
π INVITE BOT TO YOUR SERVER
.
βββ bot-news-it-discord/
βββ.git/
βββ.github/
βββ.vscode/
βββsettings.json
βββenv_bot-news-it-discord/
βββ Lib/
βββ Scripts
βββ .gitignore
βββ pyvenv.cfg
βββ__pycache__/
βββ.env
βββ.gitignore
βββ.tmp
βββmain.py
βββnews.py
βββreadme.md
βββrequirements.txt
- add translate with google translate in main.py
def translater(func):
def wrapper(*args):
return translator.translate(func(*args), dest="th").text
"""
"th" can change your local language ππ»
"""
return wrapper
If you would like to contribute to the project, include a section on how to do so, including any guidelines and best practices.
Include information about the license used for the project, such as the name of the license (e.g. MIT, Apache 2.0, etc.) and a link to the license text.