When the vote ends as the time get's finished, or also when you do !endvote, the bot spits out all the info on the main channel. What the feature wud be is the bot can set a topic at the same time.
TheBot changes topic to "The vote has ended with the following stats; Yes(5), No(2), Get lost(1). Majority had voted for Yes. Thank you"
set botsettopic"yes"
Or something like that.. but you got the picture.

And even if it's your first script, not bad at all.
Waiting for v2.