blobemoji / coindrop Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Total coin drops that day/total on that server.
Why? Why not, a nice feature to have, interesting stat to have, and helps answer people who want to know how many coins that they missed that day/night/time they left the server for.
People are running commands on #general and psyching people into spamming .pick
because that makes the BlobCoin bot send a message.
My suggested proposal is that a check is added to all commands (other than .pick) that checks if the command is happening in the #bot-commands channel. If it is, then it will execute the command. If not, it will delete the message that triggered the command and possibly warn the user via DM or chat message that bot commands should be run in #bot-commands.
People are spamming the chat just so the coin drops. That happens because the coin drop is determined on the on_message
event.
My suggested proposal is that the coin dropping happen in a background task so that it doesn't depend on messages. Then it would look something like
while True:
drop_coin()
time_to_sleep = calculate_sleep_time_using_exponential_stuff()
await asyncio.sleep(time_to_sleep)
Instead of just responding to a typed message which can be a disadvantage to slow typers or mobile users.
Have alternate ways of responding to the "A coin has dropped message".
I was thinking that this could perhaps be via a reaction which is much easier and quicker to do.
By this I mean the bot reacts to itself to get around the issue of having reactions blocked for non-role users.
This can then be evolved to slightly combat selfbots by having say 3 reactions and the message says which to choose.
Just ideas /shrug
From a base time of say 5 seconds (or whatever it is currently) add a small amount of time per letter for long words.
I have seen a few complaints/messages about long words taking a while to type.
.pick @personwhodoesntwanttobepinged
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.