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 (129)

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 (2645) [earned 5 cycles]
View Answer
Comments
hotnewtop
Vandesm14 (2645)

This is not currently possible on repl.it

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:
'''
TEXT GOES HERE
'''

ash15khng (712)

This isn't possible because repl.it 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 (136)

@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 (129)

@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