Ask coding questions

← Back to all posts
Is there a way to get the username of an account that runs a repl and store it?
JamesGordon1 (150)

I am trying to make a log of users that run my repl. How would I do it? I have looked all over but no answers?
Can you help me?

Answered by Vandesm14 (2729) [earned 5 cycles]
View Answer
Vandesm14 (2729)

This is not currently possible on

HoogidyBoogidy (4)

This doesn't have to do with the username thing, but you don't have to type MULTIPLE lines that say, "print()". You can use ONE print() function by using a multi line string:

ash15khng (721)

This isn't possible because doesn't provide a way for you to get the usernames of people running your code. Not sure why this feature would be useful tho.

RahulChoubey1 (172)

@ash15khng idk, finding how many times a certain user clicked a certain button on your site?

nathanmachane (0)

@ash15khng Keeping track of high scores?

JamesGordon1 (150)

@ash15khng it was to log who ever ran the beta version on a program so I could give them credit and log who sent feedback if they did send any, but that doesn't matter now

CookieSnowOwl (41)

It is possible, check out this repl(not a virus) by rayhanadev