Skip to main content

Economy and Levels

Ririko has credits (money) and XP (experience). Members earn both by chatting, by being in voice channels, by claiming a daily reward and by playing games. They spend credits in the shop, in mini-games and in the card game.

1. How It Works​

  • Credits are the money of Ririko. Your credits are the same in every server. Each member has a wallet and a bank.
  • XP is kept for each server. XP gives you a level in that server.
  • Karma is a small score that members give each other in a server.
  • A profile card is a picture that shows your level, rank and credits.

Server admins cannot set the number of credits that members earn. This stops one server from creating credits for everyone. Bot owners set the global values (see section 8).

Turn it on. The economy is always on. Admins can change how XP works in their server on the dashboard XP & Ranking page (see section 7).

2. Commands​

All economy commands are open to everyone.

2.1. Credits and Bank​

CommandAliasesOptionsWhat it does
/balancebal, moneytarget (member)Shows the wallet, bank and net worth.
/dailydNoneClaims the daily reward.
/depositdepamount (required)Moves credits from the wallet to the bank. Type a number or all.
/withdrawwithamount (required)Moves credits from the bank to the wallet. Type a number or all.
/paygive, transfertarget (required), amount (required, at least 1)Sends credits from your wallet to a member. You cannot pay yourself.

The reply to /balance shows the wallet, the bank and the net worth:

The reply to /balance: wallet, bank and net worth in credits.

2.2. Ranking and Profile​

CommandAliasesOptionsWhat it does
/leaderboardlb, topscope (server or global), pageShows the XP ranking.
/profileranktarget (member), background (link)Shows a profile card. With a link or an attached image, it sets your own background.
/karmakaction (view or give), target (member)Shows karma. With give, you give 1 karma to another member. You cannot give karma to yourself. Server only.

The reply to /leaderboard ranks members by level and XP:

The reply to /leaderboard: the top two members with their level and XP.

Profile background rules:

  • The image can be at most 1200 x 400 pixels and 5 MB.
  • The link must be public. Ririko saves a copy of the image.
  • You can use a link, or attach an image when you use the prefix form.

2.3. Shop and Items​

CommandAliasesOptionsWhat it does
/shopstoreaction (list or buy), item (item code), quantityLists the shop. With buy, buys an item.
/inventoryinv, bagtarget (member)Lists the items of a member.
/useconsumeitem (item code, required), quantityUses an item from your bag.

Every item has a code. /shop and /inventory show it. You type the code in /shop buy and in /use.

The shop starts with these items:

CodeNamePriceWhat it does
candy_minorMinor Energy Candy100Restores 20 energy. You can buy 1 each day.
stamina_potionStamina Potion350Restores 50 energy. You can use 3 each day.
exp_potion_smallSmall EXP Potion250Gives 150 XP in the server where you use it.
profile_bg_voucherProfile Background Voucher1500A cosmetic voucher.

Energy is used by the card game. See tcg-player-guide.md. Bot owners can add and change items (see section 8).

3. How You Earn Credits and XP​

ActivityCreditsXPLimit
Send a chat message2015 to 25Once every 60 seconds
Be in a voice channel3540Each minute, if an admin turned on voice rewards
/dailySee section 4NoneOnce each reset day
Win a mini-gameYou get your wager back, doubledNoneSee modules.md
Card game and adventuresListed on their pagesListed on their pagesSee waifu-tcg.md and adventure-game.md

The XP of a chat message and of a voice minute follow the XP rate of the server.

Ririko pays nothing for spam. A message earns nothing when:

  • it is shorter than 5 characters,
  • it is almost the same as one of your last few messages (80% or more alike),
  • it is sent at an inhuman speed. You then wait 30 minutes before you earn again.

Voice rewards need all of these:

  • An admin turned on Voice rewards.
  • You are with at least one other member. Two members are the least.
  • You are not muted or deafened.
  • You are not in the AFK channel.
  • You are not in a no-XP channel and you do not have a no-XP role.

4. Daily Reward​

/daily gives credits and builds a streak.

  • The base reward is 250 credits.
  • Each further day in a streak adds 5%. The bonus stops at +150%.
  • You can claim once each reset day. A new day starts at 00:00 in GMT+8 by default.
  • If you miss 1 or 2 days, you keep your streak. The missed days are skipped, not counted. A streak of 15 days with 2 missed days continues at 16.
  • If you miss 3 days or more in a row, the streak starts again. That claim counts as day 1.

The host can change the reset time and the number of days you may miss. See section 9.

The reply to /daily: the credits awarded, the streak and the new wallet balance.

5. Bank​

  • The wallet holds credits you carry. You can lose them in games.
  • The bank is safe. Games cannot take credits from it.
  • Bank capacity is 10,000 credits plus 2,500 for each level. Your level here is the level of your XP added together across all servers.
  • If your capacity gets lower, you keep your credits. You can withdraw them, but you cannot deposit more.

6. Levels​

To go from level L to level L+1 you need 5 x L x L + 50 x L + 100 XP. Level 0 to 1 takes 100 XP. Level 1 to 2 takes 155 XP.

  • When you level up, Ririko can announce it (see section 7).
  • You can turn level-up messages off for yourself.
  • A higher level raises your bank capacity and your card game energy.

7. Server XP Settings​

You need the Manage Server permission.

  1. Open the dashboard and pick your server. See dashboard.md.
  2. Open the XP & Ranking page.
  3. Change the settings.
  4. Save.
SettingWhat it does
Announce level-upsTurns level-up messages on or off. Members who turned them off for themselves are never announced.
Level-up channelWhere the messages go. Without one, Ririko posts in the channel of the level-up. Voice level-ups are announced only here.
XP rate (%)100 is normal. 200 doubles XP. 0 turns XP off. The most is 300.
No-XP channelsChat and voice channels that earn no XP. Up to 50. Threads follow their channel.
No-XP rolesMembers with these roles earn no XP. Up to 25.
Voice rewardsTurns on credits and XP for voice time. It is off by default.

You can also use the command line: ririko guild:config <server> xp.<key> <value>.

8. Global Settings for Bot Owners​

Credits, the daily reward, the bank and the shop are the same in every server. Bot owners (the users in BOT_OWNER_ID) change them. A passkey is required. See dashboard.md.

  1. Open the dashboard and go to the Owner console.
  2. Open Economy for the values below, or Item shop for items.
  3. Change the values and save.
SettingDefaultRange
Daily base reward2500 to 1,000,000
Streak bonus for each further day (%)50 to 100
Largest streak bonus (%)1500 to 1,000
Bank capacity at level 010,0000 to 1,000,000,000
Bank capacity for each level2,5000 to 10,000,000

You can also run ririko economy:config [key] [value].

Each shop item has a code, a name, a price, a rarity, a category, an icon, a daily limit and an effect. The code has 2 to 32 lowercase letters, digits or underscores. It cannot change after you save it. An item that members hold, or an item from the starting list, can be retired but not deleted.

9. Reset Time Settings for Hosts​

All daily systems use one reset time. These settings are in .env.

VariableDefaultWhat it does
RIRIKO_RESET_OFFSET_MINUTES480Minutes ahead of UTC. 480 is GMT+8.
RIRIKO_RESET_TIME00:00The reset time of day, in that offset.
RIRIKO_RESET_TIME_DAILYThe value aboveThe reset time for /daily.
RIRIKO_RESET_TIME_ENERGYThe value aboveThe reset time for card game energy.
RIRIKO_RESET_TIME_ENERGY_POTIONSThe value aboveThe reset time for the daily energy potion limit.
RIRIKO_RESET_TIME_TCG_SHOPThe value aboveWhen the card game town shop changes stock.
RIRIKO_RESET_TIME_SHOP_PURCHASESThe value aboveThe reset time for the daily purchase limits of the shop.
RIRIKO_DAILY_STREAK_FORGIVENESS3Days in a row you can miss before the streak ends. 0 turns forgiveness off.

Restart the bot after you change them. See deployment.md.