Sejong-bot is a Korean language bot targeted towards Korean learners and enthusiats. It supports features such as word definitions in Korean and English, example sentences and neural machine translation. Users can also bookmark past searches to their DM's.
Use the following invite link!
A 'support' discord server can be found here. Feel free to ping me and ask questions. If you would like to support me as a creator, consider buying me a coffee below:
- Dictionary
- Definitions and Word Info (scraped from .html)
- Example sentences (through the API)
- Hanja database from dbravender/hanjadic
This command performs a dictionary search for a given parameter presents the results to the user in a precise manner. Results include the word-type, as well as the meanings of the word both in English and in Korean. Users can use reactions to switch the language of the meanings or bookmark the result.
Searches the hanja database for meanings of hanjas and related words that occur in the provided argument. Scans the word an returns all relevant results including meaning of single hanjas, meanings of single hanjas, as well as related words. Users can use reactions to browse pages of results or bookmark the result.Returns a list of Korean example sentences including a word given. Users can bookmark the result.
Requirements are given in requirements.txt
. Install using venv
or however you prefer. I developed on Python 3.10.13, which is also the base-image of the Dockerfile if applicable to you.
- Generate a Discord Bot Token, a 한국어기초사전 OPEN API Token.
- Either use the env variables
SEJONG_BOT_TOKEN
andSEJONG_KRDIC_TOKEN
, or create a.env
file in the project root of the following form:BOT_TOKEN=<<DISCORD_TOKEN>> KRDIC_TOKEN=<<KRDIC_TOKEN>>
- Modify
config/emojis.yaml
andconfig/settings.yaml
as required. - Run using
python main.py