Calculator
This is the cog guide for the Calculator cog. This guide contains the collection of commands which you can use in the cog.
Through this guide, [p] will always represent your prefix. Replace [p] with your own prefix when you use these commands in Discord.
Note
Ensure that you are up to date by running [p]cog update calculator.
If there is something missing, or something that needs improving in this documentation, feel free to create an issue here.
This documentation is generated everytime this cog receives an update.
About this cog:
A cog to do calculations from Discord with buttons!
Commands:
Here are all the commands included in this cog (15):
[p]calculate [calculation]
Calculate a simple expression.
[p]setcalculator
Commands to configure Calculator.
[p]setcalculator autocalculations <auto_calculations>
Toggle the auto calculations.
[p]setcalculator autocalculationsignoredchannels <auto_calculations_ignored_channels>
The channels to ignore for the auto calculations.
[p]setcalculator defaultautocalculations <default_auto_calculations>
Set the default state of the auto calculations.
[p]setcalculator defaultreactcalculations <default_react_calculations>
Set the default state of the react calculations.
[p]setcalculator defaultresultcodeblock <default_result_codeblock>
Set the default state of the result codeblock mode.
[p]setcalculator defaultsimpleembed <default_simple_embed>
Set the default state of the simple embed mode.
[p]setcalculator modalconfig [confirmation=False]
Set all settings for the cog with a Discord Modal.
[p]setcalculator reactcalculations <react_calculations>
Toggle the reaction calculations.
[p]setcalculator reactcalculationsignoredchannels <react_calculations_ignored_channels>
The channels to ignore for the reaction calculations.
[p]setcalculator resetsetting <setting>
Reset a setting.
[p]setcalculator resultcodeblock <result_codeblock>
Toggle the codeblock mode.
[p]setcalculator showsettings [with_dev=False]
Show all settings for the cog with defaults and values.
[p]setcalculator simpleembed <simple_embed>
Toggle the simple embed mode.
Installation
If you haven’t added my repo before, lets add it first. We’ll call it “AAA3A-cogs” here.
[p]repo add AAA3A-cogs https://github.com/AAA3A-AAA3A/AAA3A-cogs
Now, we can install Calculator.
[p]cog install AAA3A-cogs calculator
Once it’s installed, it is not loaded by default. Load it by running the following command:
[p]load calculator
Further Support:
Check out my docs here. Mention me in the #support_other-cogs in the cog support server if you need any help. Additionally, feel free to open an issue or pull request to this repo.
Credits:
Thanks to Kreusada for the Python code to automatically generate this documentation!