PlumpRump Posted April 22, 2019 Share 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. Quote Link to comment Share on other sites More sharing options...
Naked Posted April 22, 2019 Share Posted April 22, 2019 No. Add it as a script parameter. Quote Link to comment Share on other sites More sharing options...
Night Posted April 22, 2019 Share 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 Quote Link to comment Share on other sites More sharing options...
Chris Posted April 22, 2019 Share 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 Quote Link to comment Share on other sites More sharing options...
PlumpRump Posted April 22, 2019 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Chris Posted April 22, 2019 Share 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 Quote Link to comment Share on other sites More sharing options...
Night Posted April 22, 2019 Share Posted April 22, 2019 Oops, kek 1 1 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted April 22, 2019 Share Posted April 22, 2019 Pls tell me there's no getBot().getPassword() method Quote Link to comment Share on other sites More sharing options...
atoo Posted April 22, 2019 Share Posted April 22, 2019 11 minutes ago, HeyImJamie said: Pls tell me there's no getBot().getPassword() method There is dawg Quote Link to comment Share on other sites More sharing options...
Chris Posted April 22, 2019 Share 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 Quote Link to comment Share on other sites More sharing options...
Naked Posted April 22, 2019 Share 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 Quote Link to comment Share on other sites More sharing options...