roleplay module

class shellbot.plugins.roleplay.setup.Roleplay(config, credentials=None, **kwargs)

Implement the RolePlay plugin.

coroutine dice(ctx, *, expr=<shellbot.ext.action_interpreter.DiceMatch object>)

Implement the dice command.

Parameters:
  • ctx (Context) – The command context.
  • expr (DiceMatch) – Operation data type.
coroutine flipcoin(ctx, *, n=1)

Implement the flipcoin command.

Parameters:
  • ctx (Context) – The command context.
  • n (int [optional]) – Number of times to flip the coin.
coroutine randint(ctx, *, expr=<shellbot.ext.action_interpreter.RandSlots object>)

Implement the randint command.

Parameters:
  • ctx (Context) – The command context.
  • expr (RandSlots) – Arguments string to parse.
Raise:

BadArgument – Invalid bounds.

coroutine randuser(ctx)

Implement the randuser command.

Parameters:ctx (Context) – The command context.