Add ban duration to ban message

If I did this right, it should add the ban duration to the "you have been banned" message.
What if `duration` is `None`?