Giter VIP home page Giter VIP logo

telegram-suggest-sticker-bot's Introduction

Hi there

isrealodejobi

About me

Front-end developer with more than 5 years of commercial development experience. Prefer to work with TypeScript.

Took part in open-source projects contribution like: react-data-grid (90k+ downloads/week). Was mentoring junior and middle software developers.

I'm keen on diving deep in DevOps and machine learning. Also, like to take photos of smiling people!

Tech stack GitHub Stats
  • React.js, Vue.js
  • JavaScript, TypeScript
  • REST, GraphQL, WebSocket (even using Socket.io), WebRTC
  • HTML, CSS (SASS, PostCSS)
  • Git, Docker
  • StoryBook
  • Unit-testing (Jest), E2E testing (Cypress)

Connect with me

LinkedIn Badge Gmail Badge

telegram-suggest-sticker-bot's People

Contributors

powerslime avatar

Watchers

 avatar  avatar

telegram-suggest-sticker-bot's Issues

Sort available suggestions alphabetically

Steps to reproduce:

  1. Open bot
  2. Add some suggestions
  3. Write /list

Actual result:
Items are returned chaotically.

Expected result:
Items should return in ascending alphabetical order

Add `updated_at` to `stickers` table

Now, when user will try to add sticker that is already exists in DB - refresh it's update_at to return suggestions with newly added sticker first

Errors with PostgreSQL

Some errors are shown in console when user tries to add just 1 sticker.

Steps to reproduce:

  1. Open bot in telegram
  2. Write /add
  3. Send anything as word
  4. Send just 1 sticker
  5. Send /finish

Actual result:
Server throws an error

2021-05-14T22:58:54.342723770Z app[web.1]: (node:224) UnhandledPromiseRejectionWarning: Error: Undefined binding(s) detected when compiling FIRST. Undefined column(s): [word_id] query: select "sticker_id" from "stickers" where "word_id" = ? and "sticker_id" = ? limit ?
2021-05-14T22:58:54.342748974Z app[web.1]:     at QueryCompiler_PG.toSQL (/app/node_modules/knex/lib/query/querycompiler.js:110:13)
2021-05-14T22:58:54.342755509Z app[web.1]:     at Builder.toSQL (/app/node_modules/knex/lib/query/querybuilder.js:78:44)
2021-05-14T22:58:54.342760935Z app[web.1]:     at ensureConnectionCallback (/app/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:4:30)
2021-05-14T22:58:54.342792075Z app[web.1]:     at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:272:20)
2021-05-14T22:58:54.342797889Z app[web.1]:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2021-05-14T22:58:54.342803020Z app[web.1]:     at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:19)
2021-05-14T22:58:54.343072456Z app[web.1]: (node:224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)

Expected result:
Anything should be fine and row should be added in DB

Suggest even suggestions

Motivation:
For example user have suggestions for my very long sentence "word". Show somehow in inlinemode closest suggestions that user have instead of showing nothing.

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.