Coder Social home page Coder Social logo

discordbot's Issues

Feature: Help response commands

Implement help response commands for providing quick responses to frequently asked questions / requests for information about DDNet/Teeworlds. Moderators would add, edit, and remove responses, and any user could use the main response command to retrieve responses. These responses could also provide links to the DDNet Wiki to show the quick, concise information first, but still provide users with more information as needed.

Example: A user in #questions asks how to aim directly upwards. Another user could use the command !response direction bind to give the user a quick answer with the bind command included.

!add_response <response_trigger> <response>
!edit_response <response_trigger> <response>
!remove_response <response_trigger>

!response <response_trigger>

It may also be beneficial to provide aliases for response triggers, which moderators could add and remove, as well as a response list for browsing all responses.

!add_alias <response_trigger> <alias>
!remove_alias <response_trigger> <alias>
!all_responses

Aliases would be included in the output of !all_responses for ease of use. We could also consider a maximum number of aliases and an alias/response trigger length limit so that the command output of !all_responses is always readable. The response list would need to be paginated, probably with the use of arrow emoji reactions like most bots do, or we can just use the paste service.


I could help develop this but my understanding of Rust is pretty limited, so I might need some help. At first I was thinking about using the serde crate as a quick way to store these responses and aliases as JSON, but since we already use SQL for global bans, we might as well create a new table for responses.

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.