Fix for empty list and wrong number of iterations
Fix for empty list and wrong number of iterations

IndexError did not trigger even when cache has less messages than context length since the index will just become negative and go back to the tail of the list. Fixed to only iterate through available cached messages once.
appu1232/Selfbot-for-Discord