Git Product home page Git Product logo

alice's People

Contributors

bearingme avatar carlos3g avatar emersondoamaral avatar fadiinho avatar matheusfelipeog avatar

Stargazers

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

Watchers

 avatar

alice's Issues

Atualizar comando !links

O comando !links retorna os links para os grupos coding. Porém, alguns links necessitam serem atualizados, outros removidos e outros adicionados.

Para atualizar:

Para remover:

  • Coding in Taberna

Para adicionar

Novo comando !transcribe

Um comando !transcribe onde ao marcar um aúdio o bot responde com a versão escrita doque foi falado no aúdio

Isolate strings in a strings.json file

Currently, the messages that must be returned to the end user are inserted directly into the code (see an example here). It is necessary to separate these strings in a .json file. Basically, the schema for this file should look something like the following:

{
  // ...
  commands: {
    // ...
  }
}
  • Any string that is NOT returned by a command must be outside commands key.
  • The commands has an object like value. The keys and values inside this object must be, respectively, the name of the correspondent command and an object with the strings.

Notes:

  1. The strings inside this file must be only strings returned to the end user. For example, strings passed to Error instances mustn't be in this file.
  2. This file must ONLY be modified programmatically.
  3. When importing this file, the const it will be attributed to must be uppercased. See the following example:
const STRINGS = JSON.parse(require('./strings.json'));

function sendMessageToUser() {
  return STRINGS.welcomeNewUser;
}

!link command needs an update

Some of the group's links in the return of !link command are broken or they direct to a inactive group. The Coding in taberna's invite link is missing too.

--target & --limit kwargs in !search command

Some new kwargs to be implemented in !search command:
--target -> Target site to be search in. Only results that directs to this target will be returned.
--limit -> Limite of results to be returned. Defaults to 1.

Novo comando !pastebin

Um comando !pastebin em que ao prover um titulo e um texto o bot cria um pastebin temporario com essas informações. Necessário ver quais flags de configurações podem serem criadas

Unnecessary !github command

The !github command aims to returns a link to the latest stable version of Alice, but it's more appropriate to !doc command's return includes this link.

Uses env vars

We need to use env vars in this repository to hide sensitive information like phone numbers

Creates a util function to validate args

Currently, args are validated separately in each command. It is necessary to separate this validation into an util function to improve code maintainability and 'clean' it.

Requirements for args to be valid have not yet been established. Give us your opinion!

New !everyone command

New command to mention all group participants in a message in reply to another message.


Notes:

  1. Only administrators must be able to use this command

New !promote command

New command to promote users to administrator. Ex: !promote @carlos


Notes:

  1. Only administrators must be able to use this command
  2. We don't know if promoting multiple users at the same time can get the bot banned by whatsapp. It is necessary to verify.

New alice structure

- src
  - commands
    [...]
  - auth
    - index.js
    - session.json
  - build
    - index.js
    - Commands.js
    - Path.js
  - utils
    - index.js
    - Parse.js
    - Util.js
  - Alice.js
- index.js

This is what we are thinking by now. Any suggestion? leave a comment!

New !ban command

New command to ban mentioned users. Ex: !ban @smith @carlos @matheus


Notes:

  1. Only administrators must be able to use this command
  2. If too many users were banned at once, whatsapp will recognize this as abnormal behavior and will ban the bot. It's needed to search for a workaround to this

New !demote command

new command to demote users to common member. Ex: !promote @carlos


Notes:

  1. Only administrators must be able to use this command
  2. We don't know if demoting multiple users at the same time can get the bot banned by whatsapp. It's necessary to verify.

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.