Skip to content

Simple Japanese-English dictionary Telegram bot with export features. 簡易な和英辞書ボット

Notifications You must be signed in to change notification settings

cnphil/jisho-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jisho-bot

jisho-bot offers basic Japanese-English dictionary over Telegram bot (@my_jisho_bot). It also supports exporting your lookup history into flashcards.

Installation

  • python >= 3.5
  • pip install -r requirements.txt
  • mv jisho/config.py.example jisho/config.py
    # Put your Telegram bot token here
    vim jisho/config.py
    # Run the bot
    python jisho/jisho.py

Usage

Lookup a word

  • Just message <word> to the bot, or use /search <word> in group chats.

Export flashcards

  • Message /record to start recording.
  • Lookup words.
  • Message /record_stop to stop recording, a TSV file with definitions of the words will be sent to you.

Record_demo

Importing flashcards into Anki

Anki is a powerful, cross-platform flashcard app. You can import the TSV file that jisho-bot generated into Anki.

The exported TSV has three fields:

  • {word} {reading} {definition}
  • reading is usually Hiragana, or Katakana for loanwords (借用語).

An example of Anki flashcard: Anki_demo

Credits

jisho-bot uses jisho.org's amazing API for Japanese-English dictionary.

About

Simple Japanese-English dictionary Telegram bot with export features. 簡易な和英辞書ボット

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages