I want a bot to make charts?

What kind of example code? I don’t know what your chart data looks like nor the database you are using. Additionally, I don’t know in what way your bot should understand the message.