File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 24
24
#####################################
25
25
#
26
26
COMMAND_PREFIX = '!' #
27
- VERSION = "v0.3.3 -alpha" #
27
+ VERSION = "v0.3.4 -alpha" #
28
28
ACTIVITY = discord .Game ("!help" ) #
29
29
LOG_LEVEL = logging .INFO #
30
30
#
@@ -205,12 +205,19 @@ async def on_message(message):
205
205
await bot .process_commands (message )
206
206
207
207
208
- @bot .command (name = "score" , help = "Displays your current server score. " )
208
+ @bot .command (name = "score" , help = "Displays your current score, or someone else's score if mentioned " )
209
209
async def check_user_score (ctx ):
210
- uuid = ctx .message .author .id
211
- score = get_user_score (uuid )
210
+ if (ctx .message .mentions == []):
211
+ uuid = ctx .message .author .id
212
+ score = get_user_score (uuid )
213
+ await ctx .message .channel .send (f"Score for <@{ uuid } >: { score } " )
214
+ else :
215
+ for user in ctx .message .mentions :
216
+ uuid = user .id
217
+ score = get_user_score (uuid )
218
+ await ctx .message .channel .send (f"Score for <@{ uuid } >: { score } " )
212
219
213
- await ctx . message . channel . send ( f"Score for <@ { uuid } >: { score } " )
220
+
214
221
215
222
216
223
@bot .command (name = "correct" , help = "Sends correct.png" )
You can’t perform that action at this time.
0 commit comments