-
Notifications
You must be signed in to change notification settings - Fork 3
$hug
d-dd edited this page May 29, 2016
·
5 revisions
$hug "Asks yukari to hug you back."
Yukari responds in one of three ways:
- User: ....
- (image response)
- Yukari hugs user.
The response depends on luck (random roll), user's time in channel, and user's adds/queues.
Initially Yukari checks whether user is non-guest.
- Then users stats are retrieved: time_tier [1,3] ; add_tier [1,3].
- A random number is selected
q
:randomTier = max(int(random.gauss(0.4, 1.7)), 0)
If q
=< 0, return result #1
If q
>= 4, return result #3
if q
< 4 and q > 0:
-
replace
timer_tier
oradd_tier
randomly with randomTier. -
take the product of above, which is the image level. [1-9]
-
choose random image from the image level pool.