Code Monkey home page Code Monkey logo

kotoba's People

Contributors

abkwreu avatar alkhwarizm avatar dependabot[bot] avatar djahandarie avatar ernespa avatar grosa1 avatar ibluedust avatar mistval avatar ras9929 avatar riolku avatar rypervenche avatar winteryfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kotoba's Issues

Error when stopping Shiritori

Seen once in error log, specific conditions unknown:

embed.fields.1.value: This field is required
Stack: DiscordRESTError [50035]: Invalid Form Body
embed.fields.1.value: This field is required

Unfound method in examples

No createTitleOnlyEmbed() in examples_content_creator.js. Most likely only a problem when Jisho request times out.

Dictionary.goo.ne.jp lookup

User suggestion. Would first need to evaluate whether this would infringe on someone's copyright (it probably would, but not sure)

Thumbnail for dictionary results?

User suggestion: user wants a rendered image of the search query attached to the results.

Gut feeling is that it probably won't work as a thumbnail due to the thumbnail shrinking the width available to results.

It could work as a command button, but this would require a web server to serve the images, and is of questionable utility.

Let's leave it be for now until another user suggests a similar/same thing.

Exception in shiritori

TypeError: Cannot read property '279811287729307649' of undefined
Stack: TypeError: Cannot read property '279811287729307649' of undefined
at createFieldForUsedWord (/home/xxx/commands/shiritori.js:50:43)
at createFieldsForTookTurnEmbed (/home/xxx/commands/shiritori.js:62:17)
at DiscordClientDelegate.playerTookTurn (/home/xxx/commands/shiritori.js:244:17)
at tryShowCurrentState (/home/xxx/kotoba/shiritori/shiritori_manager.js:159:25)
at promise.catch.then.then (/home/xxx/kotoba/shiritori/shiritori_manager.js:214:14)
at

Create pronunciation command

Some innovative fellows are using Forvo https://forvo.com/ to get word pronunciations. That would be good to have in Kotoba too.

This is a good first feature because it is almost entirely independent from the rest of the codebase. You can create a command file in the commands directory and write whatever code you need in there. The command file will be loaded automatically by the bot framework, as long as it's present in the command directory.

There's an API for Forvo: https://api.forvo.com/

The API key should be stored in kotoba/api_keys.js

(optionally) more compact dictionary results

User suggestion:

Regarding the jisho look-up though, would be possible to make a like mini version of that command that doesn't present as large a wall of text? Maybe one that just shows the kana and definition for the word searched, without the additional list of words that contain that kanji too. One of our users is cleverly using the command in our shiritori game channel (because it's encouraged to provide kana and the definition of your word so people can learn new words), and it's actually quite the brilliant implementation of the command. Would be absolutely perfect if it could be condensed to 2-3 lines, so as to not clutter the channel.

Reverse kanji search

User request:

can you add some sort of reverse kanji search? like using a keyword and it gives you the kanji that has that keyword as one of its meanings

Add word frequency command

User suggestion. User wants to know how frequently Japanese words are used. Could somehow work it into the dictionary command, or make a new command.

Weblio command should be improved

It's a scraper and Weblio is a pain to scrape so it will never be perfect.

I'm going to maintain a list of words that it does poorly on here, and hopefully make it work better for some.

禿同
参加
同族嫌悪

handling failed reviews

Just a suggestion. Here's my user story:

  • Suppose you just did a quiz and failed 10 questions, so you begin a review quiz to correct yourself.
  • However, it turns out that you couldn't remember the first 5 review questions, so you fail the review quiz itself.
  • If you ask for another review, you'll get back a shorter review quiz, consisting of only the 5 first questions that you missed. The later 5 questions of the original review quiz are just gone forever.

I would like to avoid losing review questions like this due to failing review quizzes.

Some suggested workarounds:

  • Disable the concept of failing a review quiz. (Problem: Quiz might go on for a long time by itself if the user leaves.)
  • Make it so a review quiz review includes the whole list of not-yet-answered review questions, rather than only the ones that were failed in the last review pass.

Better customization of quiz settings

The quiz feature has sort of outgrown its settings to the point where there are certain decks, game modes, etc that just ignore the settings. Users are starting to notice this.

User suggestion: random word lookup

User: "one suggestion we were talking about was a random word generator.. like type in random and it can display a random word and definition. does the k!j already do this or do you always have to search for a specific word before it displays something from the dictionary ?"

Anime search command

It would be nice to have an anime search command, but I'm unlikely to do it myself as long as there are improvements to be made that are more helpful for learning. But this would be great for someone else who wants to contribute, because it would have little coupling with the existing codebase, and is pretty straightforward to implement.

There seem to be three available APIs. Each should be evaluated for suitability: http://taiga.moe/api.html

User suggestion: shiritori

User: "how about a shiritori feature? just counting points, converting kana to kanji and not allowing double answers or ending with ん"

Suggestion for more heart-pounding quizzes

From a user:

"
Every time a question goes unanswered, the time limit to answer a question goes down an increment. If the limit of unanswered questions is reached before the score limit, it's the bot that conceptually "wins" the game and all points earned by contestants in that game are revoked/stolen by the bot (maybe even give the bot a score in the leaderboard). If players are on their "last life," they can choose to manually end the quiz and be safe from losing their points.
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.