Skip to content

warrenc7/ChatBot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ChatBot

I have created a very basic python chatbot that upon launch asks the user what kind of car they wish to see and upon recieving an answer they recive a picture off said type of car.

This readme will be used by the group to develop their own code for the car bot for their own bodystyles.

To run the discord bot you are going to need the latest version of python installed and the latest version of discord installed on your computer.

You will need to open the command line and set the directory to your chat bot folder on your computer, simply copy the link and enter 'cd' into command line, followed by your link.

Then you will need to install the discord python libary. To do you will need to first install pip. To do this run 'curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py' in the command line. Once thats done then run 'python get-pip.py' in the command line. Now we can install the discord libary, to do this run 'py -3 -m pip install -U discord.py' in the command line. You should now be ready to create and run the bot.

Alongside this readme there is a python file called exampleBot.py. If you run this code it should connect the carbot to the discord server. Type car into discord and it will respond. Note that only one user can run the bot at the same time and if you want to run your own discord bot please go to the discord developer website and create a bot. then copy the bot token and paste it in the bottom line of the code file. You will also need to download the picture a1.png for the code to work otherwise you will get an error.

EDIT - We are not using this method of selecting a car anymore, we are now searching a csv file of many different cars using a dictionary.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages