Skip to content

Commit dd8450b

Browse files
committed
maybe now?
1 parent 8dcaf6f commit dd8450b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎index.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,13 @@ async function handleCommands(message) {
324324
await createUserIfMissing(userId);
325325
const user = await getUser(userId);
326326
const balance = user.points;
327-
327+
328328
const itemId = args[0];
329329
//check if item ID is a number
330330
if (isNaN(itemId)) {
331331
message.reply("Item ID must be a number.");
332332
return;
333333
}
334-
//get user ID
335-
const userId = message.author.id;
336334
switch(itemId) {
337335
case 1:
338336
if(balance>=1000000) {

0 commit comments

Comments
 (0)