From 4ddfbb57f271185a1cd9ec4216cf9394edbcdf6e Mon Sep 17 00:00:00 2001 From: "Olalekan Busari (busario2)" Date: Fri, 30 Nov 2018 13:32:52 +0000 Subject: [PATCH] Add files via upload --- Ola's Chatbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ola's Chatbot.py b/Ola's Chatbot.py index 2149e3b..8f18691 100644 --- a/Ola's Chatbot.py +++ b/Ola's Chatbot.py @@ -5,6 +5,7 @@ import urllib.request #used for opening links for api's from discord.ext import commands #used for commands that will be needed to communicate with the bot on python ##############Section in which the youtube video helped me to connect the bot to discord.############### +###############YouTube video link https://www.youtube.com/watch?v=2YO96GFBSLw #################### Client = discord.Client() #connects discord to the python program token ="NTExMzM2MjE3OTUwODE0MjA5.Dspdvg.X-1PT7UBuUsbF6ihpzh1rPbOYCs" #serves as a login for the bot client = commands.Bot(command_prefix = "!") #whatever prefix chosen is used to run the functions made @@ -79,6 +80,7 @@ async def Temp(msg): await client.say(completedStatement) ##########Example of how i learnt and adapted the code from the video i watched############## +##################YouTube video link https://www.youtube.com/watch?v=19-LOqdI61k&t=130s################## def locationIdFind(input): #this function gets the location id of all the cities the user asks information for and returns it try: url1 = "https://www.metaweather.com/api/location/search/?query="