Question: is it by or bye?
Answer: 'By' is a preposition that shows proximity or refers to someone creating or writing something. 'Bye' is an interjection to tell someone your leaving and also a noun that refers to a competitor receiving a free pass through a competition. The two different meanings of 'bye' make it a homograph.