discord-nsa-bot's People
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.