The following code works to send a message to a user:
mud.send_message(id, rooms[self.current_room]["desc"])
In one part of the game code, I don't want to start on a new line so I try:
mud.send_message(id, rooms[self.current_room]["desc"], end=" ")
mud.send_message(id, "This starts on the same line as the code above.")
This of course raises an error that the third variable (end=" ") is not welcome here. How can I start the second message on the same line?
Extra info if needed:
def send_message(self, to, message):
self._attempt_send(to, message+"\n\r")
endparameter, why don't you add it to thesend_messagefunction, and use it to control whether\n\ris added or not?send_messagefunction part of the code that you wrote yourself? If not, where did you get the code, and what does the documentation say?