Table of contents
This page is generated from
docs/cog_guides/economy.rst- please edit the source file instead of this page.
Economy
This is the cog guide for the economy cog. You will find detailed docs about usage and commands.
[p] is considered as your prefix.
NOTE
To use this cog, load it by typing this:
[p]load economy
Usage
Get rich and have fun with imaginary currency!
Commands
bank
Syntax
[p]bank
Description
Base command to manage the bank.
bank add
NOTE
This command is locked to the admin role.
Syntax
[p]bank add <to> <creds>
Description
Add currency to a user's bank account.
- Example:
[p]bank add @Twentysix 100- Increases balance by 100
Arguments
<to>The user to give currency to.<creds>The amount of currency to add.
bank balance
Syntax
[p]bank balance [user]
Description
Show the user's account balance.
- Example:
[p]bank balance[p]bank balance @Twentysix
Arguments
<user>The user to check the balance of. If omitted, defaults to your own balance.
bank set
NOTE
This command is locked to the admin role.
Syntax
[p]bank set <to> <creds>
Description
Set the balance of a user's bank account.
Putting + or - signs before the amount will add/remove currency on the user's bank account instead.
- Examples:
[p]bank set @Twentysix 26- Sets balance to 26[p]bank set @Twentysix +2- Increases balance by 2[p]bank set @Twentysix -6- Decreases balance by 6
Arguments
<to>The user to set the currency of.<creds>The amount of currency to set their balance to.
bank sub
NOTE
This command is locked to the admin role.
Syntax
[p]bank sub <to> <creds>
Description
Remove currency from a user's bank account.
- Example:
[p]bank sub @Twentysix 50- Decreases balance by 50
Arguments
<to>The user to remove currency from.<creds>The amount of currency to remove.
bank transfer
Syntax
[p]bank transfer <to> <amount>
Description
Transfer currency to other users.
This will come out of your balance, so make sure you have enough.
- Example:
[p]bank transfer @Twentysix 500
Arguments
<to>The user to give currency to.<amount>The amount of currency to give.
economyset
NOTE
This command is locked to the admin role.
Syntax
[p]economyset
Description
Base command to manage Economy settings.
economyset paydayamount
Syntax
[p]economyset paydayamount <creds>
Description
Set the amount earned each payday.
- Example:
[p]economyset paydayamount 400
Arguments
<creds>The new amount to give when using the payday command. Default is 120.
economyset paydaytime
Syntax
[p]economyset paydaytime <duration>
Description
Set the cooldown for the payday command.
- Examples:
[p]economyset paydaytime 86400[p]economyset paydaytime 1d
Arguments
<duration>The new duration to wait in between uses of payday. Default is 5 minutes.
Accepts: seconds, minutes, hours, days, weeks (if no unit is specified, the duration is assumed to be given in seconds)
economyset rolepaydayamount
Syntax
[p]economyset rolepaydayamount <role> <creds>
Description
Set the amount earned each payday for a role.
Set to 0 will remove the custom payday for that role instead.
Only available when not using a global bank.
- Example:
[p]economyset rolepaydayamount @Members 400
Arguments
<role>The role to assign a custom payday amount to.<creds>The new amount to give when using the payday command.
economyset showsettings
Syntax
[p]economyset showsettings
Description
Shows the current economy settings
economyset slotmax
Syntax
[p]economyset slotmax <bid>
Description
Set the maximum slot machine bid.
- Example:
[p]economyset slotmax 50
Arguments
<bid>The new maximum bid for using the slot machine. Default is 100.
economyset slotmin
Syntax
[p]economyset slotmin <bid>
Description
Set the minimum slot machine bid.
- Example:
[p]economyset slotmin 10
Arguments
<bid>The new minimum bid for using the slot machine. Default is 5.
economyset slottime
Syntax
[p]economyset slottime <duration>
Description
Set the cooldown for the slot machine.
- Examples:
[p]economyset slottime 10[p]economyset slottime 10m
Arguments
<duration>The new duration to wait in between uses of the slot machine. Default is 5 seconds.
Accepts: seconds, minutes, hours, days, weeks (if no unit is specified, the duration is assumed to be given in seconds)
leaderboard
Syntax
[p]leaderboard [top=10] [show_global=False]
Description
Print the leaderboard.
Defaults to top 10.
- Examples:
[p]leaderboard[p]leaderboard 50- Shows the top 50 instead of top 10.[p]leaderboard 100 yes- Shows the top 100 from all servers.
Arguments
<top>How many positions on the leaderboard to show. Defaults to 10 if omitted.<show_global>Whether to include results from all servers. This will default to false unless specified.
payday
Syntax
[p]payday
Description
Get some free currency.
The amount awarded and frequency can be configured.
payouts
Syntax
[p]payouts
Description
Show the payouts for the slot machine.
slot
Syntax
[p]slot <bid>
Description
Use the slot machine.
- Example:
[p]slot 50
Arguments
<bid>The amount to bet on the slot machine. Winning payouts are higher when you bet more.
Installation Guides
- Installing Red
- Creating a bot account
- Updating Red
- Backing Up and Restoring Red
- About Virtual Environments
- Setting up auto-restart using batch on Windows
- Setting up auto-restart on Mac
- Setting up auto-restart using systemd on Linux
Cog Reference
User guides
- Getting started
- Running Red on Fluxer
- About Privileged Intents
- About public (big) bots
- Admin
- Alias
- Audio
- Cleanup
- Cog Manager UI
- Core
- CustomCommands
- Dev
- Downloader
- Economy
- Filter
- General
- Image
- Permissions
- Mod
- ModLog
- Mutes
- Reports
- Streams
- Trivia
- Warnings
- Red and End User Data
Cog Creation Guides
- Creating cogs for Red
- Slash Commands and Interactions
- Publishing cogs for Red
- Becoming an Approved Cog Creator
- Versioning
- End-user Guarantees
- Developer Guarantees
- Breaking Change Notices
Cog Development Framework Reference
- Shared API Keys
- Bank
- Bot
- Command Check Decorators
- App Command Check Decorators
- Commands Package
- App Commands Package
- Config
- Data Manager
- Custom Events
- Internationalization Framework
- Mod log
- RPC
- Tree
- Utility Functions
Others
Legacy (Red V2)