When you sign out while that script is running, your script goes *poof* kaput...
...
PS1: redundant code:
function OnEvent_Signin(email) {
if (email == Messenger.MyEmail) {
email will always be
Messenger.MyEmail btw
PS2: useless code: You don't need to include empty functions:
function OnEvent_Initialize(MessengerExit) {}
function OnEvent_Uninitialize(MessengerExit) {}
PS3: exercise code: try to optimize the
updateMessage function like so:
1) get the filesize
2) get a random number from 1 to filesize
3) start reading from that offset until the next new line
4) use that next new line as your new message
tip: don't forget about methods like
Skip()...