Giter Club home page Giter Club logo

pepe-as-a-service's People

Contributors

quetzyg avatar tiagojpdias avatar zambinij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pepe-as-a-service's Issues

[Feature] Implement call throttling

Problem:
Currently, users can invoke the bot as many times as they want, causing a flood if the command is abused.

Solution:
Implement a throttling mechanism so that each user has to wait N seconds until the bot stops ignoring him.

Workflow:

  1. A user invokes the bot for the first time;
  2. The bot records the user, the current timestamp and sends a random image;
  3. The same user invokes the bot again;
  4. The bot checks if there's a record of the user;
  5. If so, it then checks if N seconds have passed since the last invocation;
  6. If true, a random image is sent and the timestamp gets updated;
  7. If not, the user is ignored;

[Feature] Create config file

Problem
Spreading default values when env variables aren't set

Solution
Create config files as middleware between env variables and the ones we use throughout the code. Something like Laravel's config files.

[Feature]: reload JSON automatically

Problem

  • When adding new tags to the JSON file we need to restart the bot so it can load the new map

Solution

  • Check if the files checksum has changed and if so then load again the map

[Feat] Tag aliases

Problem:

  • Whenever someones writes a similar tag the bot doesn't reply.

Solution:

  • Add an aliases property to accommodate all the possible tags related

[Feature] Add shrug tag

We're missing the ๐Ÿคทโ€โ™‚๏ธ tag and I bet there are a lot of shrugging pepes out there for us to use.

[FIX] Remove hard coded text strings

We currently have text strings hard coded in the code base.

As a first step into solving #9, we should yank them from the code and load them from language files, instead.

[Feature] Fill JSON with tags and their images

  • Fill the feeder with tags and images

Example:

{
  "feelsBadMan": [
    "url_for_image1",
    "url_for_image2",
  ],
}

So when we trigger the bot with "feelsBadMan" it will randomly fetch an image from the array

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.