nsfw module

class shellbot.plugins.nsfw.setup.NSFW(*args, **kwargs)

Implement the Not Safe For Work module.

coroutine boobs(ctx)

Implement the boobs command.

Parameters:ctx (Context) – The command context.
coroutine butts(ctx)

Implement the butts command.

Parameters:ctx (Context) – The command context.
coroutine nsfw(ctx)

Implement the nsfw command.

Parameters:ctx (Context) – The command context.
coroutine rule34(ctx, *, tags=None)

Implement the rule34 command.

Parameters:
  • ctx (Context) – The command context.
  • tags (list [optional]) – A list of tags.
Raise:

HTTPError

coroutine send_backup(ctx)

Send the backup embed image in case of failure.

Parameters:ctx (Context) – The command context.
coroutine yandere(ctx, *, tags=None)

Implement the yandere command.

Parameters:
  • ctx (Context) – The command context.
  • tags (list [optional]) – A list of tags.
Raise:

HTTPError

NSFW API Client module

class shellbot.plugins.nsfw.lib.http.APIClient

A NotSafeForWork API Client.

coroutine obbs(upper_bound, link, directory)

Return a Not Safe For Work permalink based on butts or boobs command.

Raise:HTTPError
coroutine rule34(tags)

Execute a rule34 query with the given tags and return the permalink and tags of the image.

Parameters:tags (Union[list, str]) – A list or a string of tags
Raise:HTTPError
coroutine yandere(tags)

Execute a yandere query with the given tags.

Parameters:tags (Union[list, str]) – A list or a string of tags