Refactor Alerts Bot + Fix crash

More efficient, succint and readable code with less bugs!
Fixed crash when displaying alert under certain conditions.