smserver.chat_commands package¶
Submodules¶
smserver.chat_commands.ban module¶
-
class
smserver.chat_commands.ban.ChatBan¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'ban'¶
-
helper= 'Ban a user. /ban user'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
-
class
smserver.chat_commands.ban.ChatKick¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'kick'¶
-
helper= 'kick a user. /kick user'¶
-
static
kick_user(server, user, room=None)¶ Kick a user from a room or server if no room provided
Parameters: - user (smserver.models.user.User) – User to kick
- room (smserver.models.room.Room) – Room where the user have to be kick
-
permission= <Permissions.change_room_settings: 5>¶
-
-
class
smserver.chat_commands.ban.ChatUnBan¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'unban'¶
-
helper= 'UnBan a user. /unban user'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
smserver.chat_commands.general module¶
-
class
smserver.chat_commands.general.ChatHelp¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'help'¶
-
helper= 'Show help'¶
-
-
class
smserver.chat_commands.general.ChatTimestamp¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'timestamp'¶
-
helper= 'Show timestamp'¶
-
-
class
smserver.chat_commands.general.ChatUserListing¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'users'¶
-
helper= 'List users'¶
-
smserver.chat_commands.role module¶
-
class
smserver.chat_commands.role.ChatOP¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'op'¶
-
helper= 'Change user level to operator. /op user'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
smserver.chat_commands.room_update module¶
-
class
smserver.chat_commands.room_update.ChatDeleteRoom¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'delete'¶
-
helper= 'Delete the current room'¶
-
permission= <Permissions.delete_room: 10>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatDescription¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'description'¶
-
helper= 'Update room description'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatLeaveRoom¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'leave'¶
-
helper= 'Leave the current room'¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatMOTD¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'motd'¶
-
helper= 'Update room MOTD'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatMaxUsers¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'maxusers'¶
-
helper= 'Set nb_max of users (0 to 255).'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatRoomFree¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'free'¶
-
helper= 'Free/Unfree the room'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatRoomHidden¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'hide'¶
-
helper= 'Show/Hide the room'¶
-
permission= <Permissions.change_room_settings: 5>¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatRoomInfo¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'info'¶
-
helper= 'Room resume'¶
-
room= True¶
-
-
class
smserver.chat_commands.room_update.ChatSpectate¶ Bases:
smserver.chatplugin.ChatPlugin-
command= 'spectate'¶
-
helper= 'Spectator mode'¶
-
room= True¶
-