Code Monkey home page Code Monkey logo

nekos.py's People

Contributors

31ank avatar alexflipnote avatar aviortheking avatar motzumoto avatar roguesensei avatar swyrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nekos.py's Issues

Typo in nekos/nekos.py

Line 25: "Random_hentai_gif"
Upper cased letter used in a list which is compared to input.lower(), which makes it impossible to use.

image

Inconsistency in GIF extension cases causes issues in Discord

Describe the bug
When using the neko.py API to retrieve GIFs, some of the returned links have their file extensions in uppercase (.GIF). Discord, however, treats these links as static images instead of animated GIFs.

Expected behavior
All GIF links should have their file extensions in lowercase (.gif) to ensure consistent handling across all platforms, including Discord.

Steps to Reproduce

  1. Use the neko.py API to request GIFs.
  2. Receive a link with the GIF extension in uppercase (.GIF).
  3. Post this link in a Discord chat.
  4. Notice that Discord displays the image as a static image, not an animated GIF.

Possible Solution
Ensure all GIF links returned by the neko.py API have their file extensions in lowercase (.gif). This could involve modifying the process which provides these links to change the case of the file extension to lowercase before returning it.

Additional context
The behavior is inconsistent. Not all GIF links have their extensions in uppercase, but for the ones that do, they are not properly rendered as animated GIFs in Discord.

This error?? No module named requests?

Yui FunamiBOTToday at 21:46
Traceback (most recent call last):
File "/app/cogs/developer.py", line 78, in _eval
ret = await func()
File "", line 2, in func
File "/app/.heroku/python/lib/python3.6/site-packages/nekos/init.py", line 4, in
from . import http
File "/app/.heroku/python/lib/python3.6/site-packages/nekos/http.py", line 1, in
import requests
ModuleNotFoundError: No module named 'requests'

API offline

Did you happen to abandon nekos.life or are you having hosting issues?

Almost everything looks to be broken

Almost all endpoints are giving me this error except spank

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 200, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/LunarDev/AGB/Cogs/nsfw.py", line 401, in classic
    embed.set_image(url=nekos.img("classic"))
  File "/home/ubuntu/.local/lib/python3.9/site-packages/nekos/nekos.py", line 43, in img
    return r["url"]
KeyError: 'url'

pip install not working

The command pip install -U https://github.com/Nekos-life/nekos.py is not working, tried it on linux and windows (python3.6). This error comes up:

  Downloading https://github.com/Nekos-life/nekos.py
     \ 61kB 364kB/s
  Cannot unpack file /tmp/pip-unpack-w816_6mo/nekos.py (downloaded from /tmp/pip-req-build-w9snidmt, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-req-build-w9snidmt

If you change the url to https://github.com/Nekos-life/nekos.py/archive/master.zip the command works

Not working on Replit.com

I've been using this library for a long time, I really like it, but recently it stopped working at Replit :(

I don't know if you can do anything to fix this or it's the page's problem, thanks anyway!

imagen_2021-12-19_143446

cat()

is the function cat() is really necessary while it's already callable via img("meow") ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.