April 22, 20196 yr 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.
April 22, 20196 yr 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.
April 22, 20196 yr 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();
April 22, 20196 yr Author 6 minutes ago, Chris said: getBot().getUsername(); Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks!
April 22, 20196 yr 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
April 22, 20196 yr 11 minutes ago, HeyImJamie said: Pls tell me there's no getBot().getPassword() method There is dawg 🙏
April 22, 20196 yr 14 minutes ago, HeyImJamie said: Pls tell me there's no getBot().getPassword() method https://twitter.com/sneaky/status/1083131431188983808?lang=en
April 22, 20196 yr 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
Create an account or sign in to comment