Skip to content

baltal/ChatBot-ALL-Project

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
 
 
 
 
 
 
 
 
 
 

Client/Server ChatBot

Details

Platform: Discord

Theme: SearchBot

Role: To help you find information on the internet

Characteristics: Sassy human

Features

1. Google searching inside of discord 
2. Report of current weather conditions
3. A great sense of humor! (Might not be considered great by everyone)

Requirements

Python >=3,5

Pip modules:
	discord.py
	weather-api == 0.0.3
	google

Installation

If you don't have Python 3.5 follow the commented out instructions in the requirements.txt, after that just install modules with this command:

sudo python3.5 -m pip install -r requirements.txt

And you're done!

image

Usage

First of all add the bot to your channel by clicking here and inviting it. After you've done, edit the CHANNEL variable (in 17th line) to be your channel ID. Then just go into the ChatBot folder and execute discord_server.py:

python3.5 discord_server.py

You should see some logging messages and a confirmation that you've logged in. Finally the bot is ready to use!

Troubleshooting

Permission denied

If you're experiencing problems with codio, more specifically getting the permission denied error, use this command:

sudo chown -R $USER ChatBot-ALL-Project/

If you're getting the error from a different folder just replace the ChatBot-ALL-Project/ with it.

Executing the bot gives a SyntaxError

Talking about this error in particular:

    async def on_ready():
        ^
SyntaxError: invalid syntax

In python versions older than 3.5 this is considered invalid syntax. Fix this by installing a newer version of python, preferably 3.5.2, you can find instructions on how to do it in the requirements file.

Useful links

Sprint tracker sheet

GitHub project URL

Group related images for IPP

About

ChatBot project

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  

Languages