Help module

class use_cases.user.help.Help

Bases: object

Class to show to user all commands

acronyms = {'/listroom': '/lr', '/listusers': '/lu', '/message': '/m', '/privatemessage': '/pm'}
static get_full_command(value)str

Performs the comparision of command

Parameters

value – commands

Returns

command

logged_commands = {'/create': '<room_name> <size>', '/help': None, '/join': '<room_name>', '/leave': None, '/listroom': None, '/listusers': None, '/logout': None, '/message': '<your_message>', '/privatemessage': '<receiver_user> <your_message>', '/quit': None}
not_logged_commands = {'/help': None, '/login': '<nick> <pass>', '/quit': None, '/register': '<name> <pass> <nick>'}
static response(active_user, server, args)entities.ent_user.User

Performs the listing of commands

Parameters
  • server – IP where the server will be allocated

  • args – args to show help commands

Returns

user obj with the changes