Cog-Creators / Cog-Board

Redirect: https://cogboard.red
12 stars 3 forks source link

💰 Gold Digger [PAID] [V2] #135

Open ProbablyPeps opened 6 years ago

ProbablyPeps commented 6 years ago

Gold Digger

We have some cool customized games, a living economy and a discord shop for ingame Dota 2 items! on our server. I would like inspire my userbase to invite new players to the server as having 5 person in a voice channel would actually give them Credits(Gold).

This cog should be server specific, not global.

If there are exactly 5 users on a voice channel. -Generate credits on those user's bank account (20Credits / min) each in Red Economy bank. -Or start counting how many minutes the voice channel have 5 users in it.

-Flash the :moneybag: emoji next to voice channel name when the mining is active. -By adding and removing the character at the end of the voice channel's name. (If possible without rate-limit)

-Have a command to set Gold/min rate.

When the Channel's user count is not 5 -Stop mining. -Add the mined amount to each 5 user's bank account. -Send a Message to specific channel with the amount of gold they've mined. @one @two @three @four @five You were mining for 60 minutes! This generated each of you 1200 Gold

74 lines of code is already completed.

It's half-way done, you can get an idea from here. It creates the moneybag on voice channel with at least 5 users. It contains some debugging features. It can spot if a voice channel have 5 persons. debugminers shows who it is actively mining for. Unfortunately it won't show everybody on the channel, just random 2-3 users.

https://github.com/ProbablyPeps/mine/blob/master/mine/mine.py

Bounty

I'm a poor guy, but i will send $20 via paypal or steam gift/game if you help me finish this ;)

Contact

You can contact me on discord. My name is: Peps#0412 We can also test on my bot's dev server, I would be more than happy to help.

Hope this gets picked up, as it would be a blast for my community._

Cheers. :)

bobloy commented 6 years ago

We can't flash an emoji, it will get rate-limited and violate discord TOS.

Also, V2 or V3?

ProbablyPeps commented 6 years ago

It is V2 bot. Loving V2 :) Yes i was thinking about rate-limit too. But some ppl said changing voice channel names every 5sec couldn't hurt.

ProbablyPeps commented 6 years ago

Just asked the guys at Hypesquad about the rates: They assume voice channel name change should be "patch member nick" REST: POST Message | 5/5s | per-channel DELETE Message | 5/1s | per-channel PUT/DELETE Reaction | 1/0.25s | per-channel PATCH Member | 10/10s | per-guild PATCH Member Nick | 1/1s | per-guild PATCH Username | 2/3600s | per-account |All Requests| | 50/1s | per-account WS: Gateway Connect | 1/5s | per-account Presence Update | 5/60s | per-session |All Sent Messages| | 120/60s | per-session