Giter Site home page Giter Site logo

discord-nsa-bot's People

Contributors

jtcressy avatar laachax avatar

Watchers

 avatar  avatar

discord-nsa-bot's Issues

Idea for NSA Bot

!poll [#channel] "<question>" <emoji>"<option1>" <emoji>"<option2>" ... <emoji>"<optionN>"

Send a message to the channel with each option listed and linked to an emoji which is then used to create reactions. Users can click the reactions to cast a vote.

Since users can click on multiple reactions, use bot to make sure only one option is selected.
(remove users's previous reaction if they select another reaction, and remove any reaction that wasn't originally added to the message).

User optionally specifies channel as first argument, the question MUST be in double quotes, and each option is emoji followed by double-quoted text again.
The bot's answer would look like this:
image

The bot can store the message ID in a database to recalled later to see poll results. The message could also be pinned to the channel, if the bot has the permission.

Document Schema

poll_entry = {
    "messageid": "1290829385724069",  # links to the original message so that discord.py can retreive future votes 
    "question": "What emoji is the most cancerous?",
    "options": [
        "option1": {
            "emoji": "scream",
            "name": "this one"
        },
        "option2": {
            "emoji": "joy",
            "name": "this one"
        }
    ]
}

IDEA: Custom RGB Color Roles for Normal Users

As a normal user, send !color R G B [role name] where R,G,B correspond to 0-255 values.
Possibly differentiate between RGB and hex by evaluating entire command.
!color #29F546 [role name]

Bot creates a role with null permissions, sets the rgb color, and name = user's name unless [role name] is specified.

This idea was created as a possible solution to precipice games' color role dilemma.

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.