Skip to content

watchakorn-18k/bot-news-it-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

My Workflow Run Bot

bot-news-it-discord

.env

TOKEN= <TOKEN_BOT>
API_NEWS= <API newsapi.org>

Description

πŸ“‘ Bot updates news about IT and programming with Update every hour

Getting Started

fenv clone https://github.com/<User Name Github>/bot-news-it-discord.git

cd bot-news-it-discord

Installation

cd bot-news-it-discord

# create virtualenv auto name
fenv onlyenv

# install package in requirements.txt
fenv install

Usage

πŸ“‘ INVITE BOT TO YOUR SERVER

Tree

.
└── 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

Change Log

  • 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

Contributing

If you would like to contribute to the project, include a section on how to do so, including any guidelines and best practices.

License

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.