Skip to main content

FAQ bot

ส่งคำถามให้ผู้ใช้ในเซิฟเวอร์เลือก และส่งคำตอบให้จากคำถามนั้นๆ

  1. Create a question object 
    class Question:
      def __init__(self, desc, ans):
        self.desc = name
        self.ans = ans
  2. Create a prefilled list of question
    list = [
    	Question("Q1", "A1"),
        Question("Q2", "A2")
    ]
  3. Write a function that will receive a command from user to list out a question
  4. Write a function that will receive a command from user to answer that question