Module realm_bot.roll
Dice rolling extension
Sub-modules
realm_bot.roll.dataclasses
-
Data classes for dice roller
realm_bot.roll.parse
-
Parse segments from roll command arguments
realm_bot.roll.response
-
Roll response formats (verbose vs. compact)
realm_bot.roll.roll
-
Roll a segment
Global variables
var ROLL_COMPACT_SETTING
-
Setting name for compact roll results toggle
var compact_filter
-
Boolean setting filter for compact roll results toggle
Functions
async def setup(bot: discord.ext.commands.bot.Bot)
-
Expand source code
async def setup(bot: Bot): register( ROLL_COMPACT_SETTING, False, lambda _: True, False, "Whether to use compact display for roll results.", filter=compact_filter, ) seed() bot.add_command(roll_command)
async def teardown(bot: discord.ext.commands.bot.Bot)
-
Expand source code
async def teardown(bot: Bot): global settings del settings[ROLL_COMPACT_SETTING]