Skip to content

KeyError: 'from' when trying to use foaas.fuck.random #7

@miaaaa0a

Description

@miaaaa0a

I'm trying to get a random message but it throws this error.

Traceback (most recent call last):
  File "C:\Users\nuk\Desktop\main.py", line 146, in foaas
    await ctx.send(fuck.random(name=ctx.author.name, from_=bot.get_user(ownerid)).text)
  File "C:\Users\nuk\AppData\Local\Programs\Python\Python38-32\lib\site-packages\foaas.py", line 116, in random
    return choice(**kwargs)
  File "C:\Users\nuk\AppData\Local\Programs\Python\Python38-32\lib\site-packages\foaas.py", line 97, in inner
    url = self.build_url(path, **kwargs)
  File "C:\Users\nuk\AppData\Local\Programs\Python\Python38-32\lib\site-packages\foaas.py", line 124, in build_url
    path=path.format(**params))
KeyError: 'from'

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions