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

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

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Questions about class cls0724 1 69 Apr-01-2020, 03:35 PM
Last Post: deanhystad
  Questions re: my first python app (GUI, cross-platform, admin/root-level commands)? DonnyBahama 0 129 Feb-27-2020, 08:14 PM
Last Post: DonnyBahama
  Questions about elements in dict new_to_python 5 158 Feb-08-2020, 02:47 PM
Last Post: new_to_python
  Creating Discord Bot: Unused import statement 'import discord EyeballCandy 0 158 Feb-02-2020, 10:53 PM
Last Post: EyeballCandy
  regular expression questions using module re Skaperen 4 293 Oct-22-2019, 10:10 PM
Last Post: Skaperen
  Using answers from an input function Totalartist 3 290 Jul-19-2019, 02:02 PM
Last Post: snippsat
  Questions about __name__ SheeppOSU 3 297 Jul-11-2019, 12:51 PM
Last Post: DeaD_EyE
  unit testing a method that asks two user inputs() in console gebel 0 342 Apr-03-2019, 07:59 PM
Last Post: gebel
  Grabbing questions from a quiz app CodingUnicorn 0 402 Mar-05-2019, 11:26 PM
Last Post: CodingUnicorn
  Couple of questions about modules Winfried 6 1,030 Aug-24-2018, 08:38 PM
Last Post: Winfried

Forum Jump:

Users browsing this thread: 1 Guest(s)