Misc command
,calc
Evaluate a maths expression.
Everyone can use it
Cooldown
5s
per member, per server
Aliases
3
calculate, compute, math
Subcommands
0
none — one call does it
How to use it
Type it in any channel where the bot can read messages. The prefix is , on this server and can be changed with ,prefixes.
Syntax
,calc [text]
Examples
,calc helloBuilt from the syntax above — swap the placeholders for your own mentions.
Arguments
Square brackets are optional, angle brackets are required — the same legend ,help calc prints in Discord.
| Parameter | Kind | What it takes |
|---|---|---|
text | optional | your own text |
Before you run it
What the command itself checks before it does anything, read from the src/commands/misc/calc.js source.
- Permissions
- No Discord permission flag is read directly — access goes through the bot's own rules
- Reads
- free text after the command
- Replies with
- a plain message
- Cooldown
- 5s per member, per server
In Discord
What a member sees when they run it. The reply is sent as a Components V2 panel on the server's accent colour, paginated when it is long.
M
,calc hello
B
Evaluate a maths expression.
Related
More misc commands
Commands that usually get used alongside ,calc.
,afkMiscSet an AFK status so people know you are away.aliases: away,bannerMiscShow a user's profile banner.aliases: bn, userbanner,botinfoMiscShow stats about the bot itself: users, servers, latency, memory and shards.aliases: about, bi, bot,builderMiscBuild embeds interactively.aliases: bd, embedbuild,ceMiscSend an embed using a script.aliases: code, codeblock,channelinfoMiscShow details about a channel.aliases: chi, cinfo
Ready to put bleh in your server?
Add it in a couple of clicks, run ,setup, then fine-tune everything from the dashboard.