PlumpRump Posted April 22, 2019 Posted April 22, 2019 Is there any built in way to get the login name (email) of the current bot from inside a script? I did a cursory search of the forums and API and couldn't find anything. I wrote a custom logger that writes to a new file every time a script is run. I'd like to be able to include the account email of the bot in the name of each log file so I know which account each log file is from. Also in the future, I may use the email to communicate status information about a bot to a server, and a bot's email seems like a good primary key.
Night Posted April 22, 2019 Posted April 22, 2019 6 minutes ago, Naked said: No. Add it as a script parameter. This. Allowing scripters to access e-mails that easily would be a huge security issue. 2
Chris Posted April 22, 2019 Posted April 22, 2019 1 hour ago, PlumpRump said: Is there any built in way to get the login name (email) of the current bot from inside a script? I did a cursory search of the forums and API and couldn't find anything. I wrote a custom logger that writes to a new file every time a script is run. I'd like to be able to include the account email of the bot in the name of each log file so I know which account each log file is from. Also in the future, I may use the email to communicate status information about a bot to a server, and a bot's email seems like a good primary key. getBot().getUsername(); 1
PlumpRump Posted April 22, 2019 Author Posted April 22, 2019 6 minutes ago, Chris said: getBot().getUsername(); Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks! 1
Chris Posted April 22, 2019 Posted April 22, 2019 6 minutes ago, PlumpRump said: Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks! they are noob skripors thats y 2
HeyImJamie Posted April 22, 2019 Posted April 22, 2019 Pls tell me there's no getBot().getPassword() method
atoo Posted April 22, 2019 Posted April 22, 2019 11 minutes ago, HeyImJamie said: Pls tell me there's no getBot().getPassword() method There is dawg
Chris Posted April 22, 2019 Posted April 22, 2019 14 minutes ago, HeyImJamie said: Pls tell me there's no getBot().getPassword() method https://twitter.com/sneaky/status/1083131431188983808?lang=en 1
Naked Posted April 22, 2019 Posted April 22, 2019 2 hours ago, PlumpRump said: Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks! y u ask for wrong thing