```
import discord
import requests

client = discord.Client()

@client.event
async def on_ready():
    print('Logged in as {0.user}'.format(client))

@client.event
async def on_interaction(interaction):
    if interaction.type == discord.InteractionType.application_command:
        if interaction.data.name == 'google':
            query = interaction.data.options[0].value
            url = 'https://www.google.com/search?q=' + query
            response = requests.get(url)
            await interaction.response.send_message(response.url)

client.run('TOKEN')
```
import discord
import requests

client = discord.Client()

@client.event
async def on_ready():
    print('Logged in as {0.user}'.format(client))

@client.event
async def on_interaction(interaction):
    if interaction.type == discord.InteractionType.application_command:
        if interaction.data.name == 'google':
            query = interaction.data.options[0].value
            url = 'https://www.google.com/search?q=' + query
            response = requests.get(url)
            await interaction.response.send_message(response.url)

client.run('TOKEN')