
First I made a functions that return a prompt or a response with a variable of the recall length (how long ago the response/prompt was given).

Next I made bot commands that called the prompt/response recall function and passed the users specified recall length to the function.

I made the discord bot recognise the user commands

And finally added the responses and prompts to a memory list with embeded dictionaries that hold the relevant prompts and responses which can be accessed.

example of the bot working