OH State Manager Cog

class cogs.oh_state_manager.OHState

Integer enum used to represent the two states of the queue. Either open or closed

async cogs.oh_state_manager.officeHoursAreClosed(context: discord.ext.commands.context.Context) → bool

Helper function that returns True if the queue is currecntly closed, and throws an exception if they are not closed

async cogs.oh_state_manager.officeHoursAreOpen(context: discord.ext.commands.context.Context) → bool

Helper function that returns True if the queue is currently open, and throws an exception if they are not open

class cogs.oh_state_manager.OHStateManager

Cog that allows admins and instructors to manage when the queuue is open

async startOH(context: Context) → None

Opens up the queue, starting office hours

async stopOH(context: Context) → None

Closes the queue, ending office hours