abrkn / shilly Goto Github PK
View Code? Open in Web Editor NEWShilly, the Bitcoin Cash Community Discord bot
Home Page: https://bitcoincash.baby
License: MIT License
Shilly, the Bitcoin Cash Community Discord bot
Home Page: https://bitcoincash.baby
License: MIT License
Add feature to donate to Shilly/lottery pool
2017-12-27T08:52:21.992487+00:00 app[bot.1]: !tip @derpsdfsfd $0.01
2017-12-27T08:52:22.167240+00:00 app[bot.1]: TypeError: Cannot read property 'match' of null
2017-12-27T08:52:22.167243+00:00 app[bot.1]: at exports.isValidDiscordUserIdFormat._ (/app/utils.js:34:45)
2017-12-27T08:52:22.167246+00:00 app[bot.1]: at AsyncFunction.tipping.transfer (/app/tipping.js:62:12)
2017-12-27T08:52:22.167247+00:00 app[bot.1]: at module.exports (/app/commands/tip.js:36:40)
2017-12-27T08:52:22.167248+00:00 app[bot.1]: at <anonymous>
2017-12-27T08:52:22.167248+00:00 app[bot.1]: at process._tickCallback (internal/process/next_tick.js:188:7)
If it's possible to limit Shillys participants of the lottery to only people who have posted once in a chat room? Or a similar type audience? I can't help but thing there are tons of people in discord who have never used it and just get tips, or maybe that's their intention? Ive never won in one time in weeks.
Welcome to the Bitcoin Cash Community - a place to discuss and promote Bitcoin Cash.
We are glad you've chosen low fees and fast speeds!
A few things to note before you start chatting:
Remember to download the Discord App for a much better experience at https://discordapp.com/download Do it now!
Oh, and Shilly occasionally runs a BCH raffle for online users, so it’s worthwhile having the app open. 😉
I'm not sure if this is the case already but consider having the lottery system deposit to a users !balance in the tipping system. If the raffle gives away one time codes, it may never be claimed. If it's deposited to the !balance, it will fall subject to the already in place (afaik) method of having it's funds claimed for BCF if not the user never redeems.
Currently missing the 't' at the end.
When users when the lottery, Shilly isnt messaging them their QR code.
A channel that posts about new submissions to https://acceptbitcoin.cash/ - the site that monitors new stores adding BCH as a payment method.
Can link it up directly with https://github.com/acceptbitcoincash/acceptbitcoincash where new submissions to the site are added?
You can get reccommended BTC tx fees from here: https://estimatefee.com/n/6 (api info: https://estimatefee.com/api )
the API gives the btc fee amount estimated to be included within x amount of blocks, would be nice if it was shown in USD as well, and maybe for different numbers of blocks (2, 6 and 144 would be a few good ones), just change the number at the end of the URL.
Internal error. Add proper "airbreak" style logger later
Consider limiting the daily raffle to below a threshold of, say $5 (I sometimes see $15 winnings) and save an amount for a larger optin raffle, this would allow people who frequent the discord to win as opposed to just everyone.
As an example, let's say Shilly issues $10 a day (imagine reduced from $15) for tier 1 lotteries (what we already have). It would be saving $5 A day for 7 days, that's $35 total so far. You can then have a feature on Shilly every Sunday (limit to only being able to opt-in maybe.... 5 hours before the lottery? Could also set Shilly to PM everyone) that would require people, in order to have a chance, to donate $5 to join the 2nd tier raffle. If 10 people pay $5 to get in, that's $50+$35. Totally lottery could be $85, or even just $50 and have the rest of the funds go into Shilly for it's tier 1 tipping system that happens multiple times daily.
I would do this every week. This would be beneficial in so many ways and it sounds like a pretty selfsustaining system compared to wherever Shilly gets it's funds from now. I'd love a system where I can personally opt into it for a bigger reward chance, lastly it allows for the more frequent users to actually win in comparison to anyone who is in the discord but never actually uses it but they actually win.
I'd like to suggest !rain: It would spread a tip among the people who have talked in the past 24 hours. !rain $0.10 would take $0.10 out of your balance and divide it among anyone who has said anything on the channel in the past 24 hours. "!rain $1 3hours server" would spread $1 among anyone who has talked in the past 3 hours on the entire Discord server (so the entirety of the BCH Discord, for example).
Some commands just return with no response in case of parsing errors
with optional USD
Instead of copy pasting to check if the message is !something
make a more generic system
XXXXX has won the random raffle! I've PM'd you instructions.
They won: ? BCH (? USD)
https://explorer.bitcoin.com/bch/address/XXXXXXXXXXXXXXXXXXXXXXX
2017-12-28T14:46:36.874412+00:00 app[bot.1]: Raffle drew Andreas Brekken from a list of 41 candidates
2017-12-28T14:46:36.876434+00:00 app[bot.1]: ReferenceError: randomIntFromInterval is not defined
2017-12-28T14:46:36.876436+00:00 app[bot.1]: at raffle (/app/index.js:105:31)
2017-12-28T14:46:36.876437+00:00 app[bot.1]: at <anonymous>
2017-12-28T14:46:36.876438+00:00 app[bot.1]: at process._tickCallback (internal/process/next_tick.js:188:7)
2017-12-28T14:46:36.932095+00:00 app[bot.1]: npm ERR! errno 1
2017-12-28T14:46:36.933791+00:00 app[bot.1]: npm ERR! [email protected] start: `node -r panik index.js`
2017-12-28T14:46:36.933973+00:00 app[bot.1]: npm ERR! Exit status 1
2017-12-28T14:46:36.931670+00:00 app[bot.1]: npm ERR! code ELIFECYCLE
2017-12-28T14:46:36.934471+00:00 app[bot.1]: npm ERR! Failed at the [email protected] start script.
2017-12-28T14:46:36.934273+00:00 app[bot.1]: npm ERR!
2017-12-28T14:46:36.964508+00:00 app[bot.1]:
2017-12-28T14:46:36.934657+00:00 app[bot.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2017-12-28T14:46:36.964929+00:00 app[bot.1]: npm ERR! A complete log of this run can be found in:
2017-12-28T14:46:36.965264+00:00 app[bot.1]: npm ERR! /app/.npm/_logs/2017-12-28T14_46_36_936Z-debug.log
2017-12-28T14:46:37.076873+00:00 heroku[bot.1]: Process exited with status 1
Move fetchRpc
and bitcoind
locking to apis.js
Currently uses plain private keys. Just send from Shilly's wallet
Need to use the correct embedding format
User can stake an amount of BCH. The next mined Bitcoin Cash block hash determined if it wins or loses. Zero house edge.
...such as Andreas. Their user ids are prefixed with a !
I'm not sure how fork.lol get to their numbers, but would like to add BCH and BTC mining profitabilty
A !da command and possibly auto-post when BTC difficulty has adjusted. Consider also adding profitability results after the DA between BCH/BTC to this same shilly posting as well, or a separate command.
7 days? Maybe even less. It's about being active. Installing a wallet and sweeping takes < 1 hour
Shilly has been missing responses to people, when they request !mempool
Examples:
Consider a channel for those too busy to keep up daily with discord, where Shilly posts once a week in it containing all relevant information from that week.
Coin Suggestions: difficulty adjustment, tether issuance, market cap/volume, number of new accepted merchants (depending on another github suggestion), average and/or fee suggestions amounts, price increase/decrease
Shilly suggestions: shillys total tipped amount, shillys total lottery issuance, how many different people won, how many new user joined
Tell them that it can be cashed out or passed on
The past few attempts within 24 hours to !tip a user receives no response from shilly. Not sure if funds actually move or if nothing happens, but !tip is partially broken in either case.
They don't have an RSS feed and it's a priority right now.
However, as a workaround we could try scraping our api, but we will have to dig into their json quite a bit...
https://www.yours.org/api/contents/home/all/top/1
https://www.yours.org/api/contents/home/crypto/new/5
Make it more generic and include adjustment for BCH as well
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.