Options Reference
- class levelling.options.Options(per_guild: bool = True, ignore_dms: bool = True, ignore_bots: bool = True, xp_base_increase_amount: int = 5)
The levelling instance’s options
- Parameters
per_guild (bool) –
Whether levelling is per guild or global.
Per guild by default.
ignore_dms (bool) –
Whether or not to ignore messages in dms as part of the levelling system.
Default is True, so messages don’t count as xp
ignore_bots (bool) –
Are bots also doing levelling?
Default is no
xp_base_increase_amount (int) –
How much xp each message is worth as a base
Logic is
math.floor(random.random() * 10) + xp_base_increase_amount
- __init__(per_guild: bool = True, ignore_dms: bool = True, ignore_bots: bool = True, xp_base_increase_amount: int = 5) None
Method generated by attrs for class Options.