Skip to content

A Discord bot for learners of the Korean language. Provides definitions, chinese character search, as well as example sentences and neural machine translation powered by Papago NMT.

Notifications You must be signed in to change notification settings

jarjumarvin/sejong-bot

Repository files navigation

Who is Sejong-bot?

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.

How do I invite Sejong-bot to my own server?

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:

Buy Me A Coffee

Data Sources

Commands

/dictionary

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.

/hanja

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.

/examples

Returns a list of Korean example sentences including a word given. Users can bookmark the result.

Development:

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 and SEJONG_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 and config/settings.yaml as required.
  • Run using python main.py

About

A Discord bot for learners of the Korean language. Provides definitions, chinese character search, as well as example sentences and neural machine translation powered by Papago NMT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •