ProgrammingBeginner Tutorial | Jarvis Chatbot - Python
Posted:
ProgrammingBeginner Tutorial | Jarvis Chatbot - PythonPosted:
Status: Offline
Joined: Dec 13, 20203Year Member
Posts: 288
Reputation Power: 567
Hey TTG,
My name is SiDev. I am a recent Computer Science college graduate and I enjoy making discord bots and programming in my free time. I recently came across my old AI class project and figured I would turn it into a tutorial for you guys. This tutorial will NOT show you how to get your python environment ready. If you need help doing that, I recommend following this tutorial first. Step 1: Importing APIs/Libraries import wolframalpha
This section of code allows our script to access wolframalpha and wikipedia to answer the questions we ask it later on. PySimpleGUI allows us to have a GUI for our script to interact with while it is running. Step 2: Connecting to APIs/GUI setup #connection to WolfRamAlphaAPI
This section allows our connection to Wolframalpha to get our data. It also defines the settings for GUI such as size, theme, and text displayed. Step 3: Loop Setup #loop for window
This section of the code allows for us to ask multiple questions to our bot in succession. It also defines how the bot will display the answer for each question via the popup window. Step 4: Error Handling #error handling
This section of the code helps with errors that may get thrown when the script comes across old/archived pages or broken links, etc. Step 5: Finishing Touches
This last little block of code completes our chatbot. See below for complete code. Full Finished Script #importing APIs
Images |
Last edited by SiDev ; edited 1 time in total
The following 1 user thanked SiDev for this useful post:
Chosen (02-15-2023)
#2. Posted:
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 10,380
Reputation Power: 62881
Motto: Discord: trustedseller
Motto: Discord: trustedseller
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 10,380
Reputation Power: 62881
Motto: Discord: trustedseller
Very nice tutorial SiDev! Keep them coming |
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Dec 13, 20203Year Member
Posts: 288
Reputation Power: 567
Chosen wrote Very nice tutorial SiDev! Keep them coming Appreciate it boss. Will gladly keep 'em coming! |
- 0useful
- 0not useful
Users browsing this topic: None