擅长:python、mysql、java
<pre><code>#people = []
people = {}
if "!start" in message:
sendMessage(s, "Now recording your time in chat.")
print(user.title() + " is now tracking time.")
people[user] = ['Already Tracking Time']
print(", ".join(people))
if user in people and "start" in message:
sendMessage(people[user][0], "Worked") # In case you want to send a different message for different command then you just have to append to the user in this dictionary and reference the correct subscript in the list.
</code></pre>
<p>希望这有帮助,否则请提供一些关于问题和完整代码的更多信息。你知道吗</p>