Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cogs/randcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from io import BytesIO
from random import choice, getrandbits, randint
from time import perf_counter
from urllib.parse import quote_plus
import re

import discord
Expand Down Expand Up @@ -225,7 +226,7 @@ async def pikl(self, ctx, user: discord.Member):

@commands.command(help="Googles something.", aliases=["lmgtfy", "search"])
async def google(self, ctx, *, query):
await reply(ctx, f"<https://www.google.com/search?q={query.replace(' ', '+')}>")
await reply(ctx, f"<https://www.google.com/search?q={quote_plus(query)}>")

def prime_factors(self, n: int) -> list:
i = 2
Expand Down