I just wanted to build some kind of script to list the bans and remove them.

For example:

When I typed !listbans, the bot listed all the channel bans.

When I typed !remoldbans, the bot removed the bans with more than 24 hours.

Is this easy?

Could you please provide me some help?