Bottom Page

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?
Quote
#2
Do you have a link for the library discord ?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Questions about elements in dict new_to_python 5 123 Feb-08-2020, 02:47 PM
Last Post: new_to_python
  Creating Discord Bot: Unused import statement 'import discord EyeballCandy 0 115 Feb-02-2020, 10:53 PM
Last Post: EyeballCandy
  regular expression questions using module re Skaperen 4 259 Oct-22-2019, 10:10 PM
Last Post: Skaperen
  Using answers from an input function Totalartist 3 257 Jul-19-2019, 02:02 PM
Last Post: snippsat
  Questions about __name__ SheeppOSU 3 271 Jul-11-2019, 12:51 PM
Last Post: DeaD_EyE
  unit testing a method that asks two user inputs() in console gebel 0 315 Apr-03-2019, 07:59 PM
Last Post: gebel
  Grabbing questions from a quiz app CodingUnicorn 0 360 Mar-05-2019, 11:26 PM
Last Post: CodingUnicorn
  Couple of questions about modules Winfried 6 980 Aug-24-2018, 08:38 PM
Last Post: Winfried
  Need help with the following questions and i answered few techrichit 2 618 Aug-21-2018, 01:42 AM
Last Post: techrichit
  Creating multiple folders and other questions coder2be 2 650 Aug-19-2018, 06:59 PM
Last Post: coder2be

Forum Jump:


Users browsing this thread: 1 Guest(s)