Python Forum
Discord bot that asks questions and based on response answers or asks more questions
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Discord bot that asks questions and based on response answers or asks more questions
#1


Hi everyone,

First day on Python. I've used MS Powershell for years, so I understand conditional logic, objects, variables, etc. I decided to start with a discord bot. I'm a gamer, so it seemed like a fun and useful project to start with. I'm using the discord.py library and would like to know if its possible for a discord bot to receive a command, ask a question based off of that command, store the answer into a variable, and then continue to ask more questions based off of the answer it received?

My team plays Rainbow Six. There is a lot of strategy stuff to remember for each map we play on. So if someone on my team were to send the command '!map plane" to my discord bot, I would like it to respond with "Ok, will you be attacking or defending on Plane?". The user would then respond with "Defending" and the bot would once again respond querying the user for more detail until finally it lays out a pre-written strategy.

Is this possible? If so, how would it be achieved?
Reply
#2
Do you have a link for the library discord ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] How to ask Smart Questions (thread title expansion) yoanselcp 2 727 Dec-25-2025, 07:58 AM
Last Post: Pedroski55
Question [split] How to ask Smart Questions (thread title expansion) darkuser 4 2,311 Nov-11-2024, 01:27 PM
Last Post: deanhystad
  Questions about while loop - why does one work, and the other variant does not Swgeek 2 1,512 Aug-29-2024, 07:57 AM
Last Post: Swgeek
  questions about dict.get akbarza 2 2,093 Apr-19-2024, 01:53 PM
Last Post: deanhystad
  'answers 2' is not defined on line 27 0814uu 4 3,116 Sep-02-2023, 11:02 PM
Last Post: 0814uu
  Questions regarding usage of pandas library Pala 5 2,805 Apr-26-2023, 10:21 PM
Last Post: deanhystad
  Division questions Dionysis 5 3,605 Feb-14-2023, 02:02 PM
Last Post: Dionysis
  Working with Excel and Word, Several Questions Regarding Find and Replace Brandon_Pickert 4 4,309 Feb-11-2023, 03:59 PM
Last Post: Brandon_Pickert
  Panda pivot_table questions dee 1 1,835 Jan-09-2023, 05:45 PM
Last Post: dee
  'networkx' Questions Trader 0 1,524 Dec-29-2022, 10:20 PM
Last Post: Trader

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020