notchum / nyah-bot Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
If either waifu for a round has a GIF cached, the thumbnail should also be a GIF to support it.
Describe alternatives you've considered
Currently, the GIF would only be in the waifu embed within the thread, but only the first frame would be in the thumbnail.
Additional context
.gif -> temp folder (1.jpg, 2.jpg, ....) -> resize each image in temp folder -> loop(place each image in bb -> save each full image bg+fg -> overwrite images in temp folder) -> generate final .gif from temp folder -> remove temp folder
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
waifu modification command
waifu addition command
Is your feature request related to a problem? Please describe.
The bot is stuck on Python v3.10.4 but should be updated to the latest version. Also, all database query calls are blocking calls.
Describe the solution you'd like
Update the Python version. This entails updating the RethinkDB Python wrapper; however, the latest official release doesn't support 3.12. Using these PRs with the wrapper should allow for 3.12 compatibility:
Additionally, the ReQL calls throughout the code can be (should be) adapted to use async
. An example:
import asyncio
from rethinkdb import r
async def main():
async with await r.connect(db='test') as connection:
await r.table_create('marvel').run(connection)
marvel_heroes = r.table('marvel')
await marvel_heroes.insert({
'id': 1,
'name': 'Iron Man',
'first_appearance': 'Tales of Suspense #39'
}).run(connection)
# "async for" is supported in Python ≥ 3.6. In earlier versions, you should
# call "await cursor.next()" in a loop.
cursor = await marvel_heroes.run(connection)
async for hero in cursor:
print(hero['name'])
# The `with` block performs `await connection.close(noreply_wait=False)`.
r.set_loop_type('asyncio')
# "asyncio.run" was added in Python 3.7. In earlier versions, you
# might try asyncio.get_event_loop().run_until_complete(main()).
asyncio.run(main())
Describe alternatives you've considered
N/A
Additional context
This update will not be backwards compatible with Python version <3.11.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
/leaderboard
needs to be paginated. Only create embeds for top x amount of users?Describe the bug
In the top-level messages for Waifu War rounds, the winner is displayed with green check boxes around their name. If their opponent (the loser) is a real user then their name will have red crosses around it. However, if their opponent was 'BYE' (for a bye-match), then the red crosses don't appear properly.
Expected behavior
The 'BYE' should have visual indicators of loss.
Screenshots/Logs
Additional context
N/A
Proposed Solution
Perhaps detect if the embed's field is a bye-match during creation of the embed itself, and instead of putting team color emojis first just put the green checks or red crosses.
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
A command that buys a "pack" of waifus at a cost. (i.e. /pack
)
Describe alternatives you've considered
N/A
Additional context
It should be pure random. Wishlist should not affect odds.
Is your feature request related to a problem? Please describe.
Currently, a waifu war match up just shows images of the two characters and asks users to vote. What are users voting for that they like better about one character versus the other?
Describe the solution you'd like
Instead of just asking users to vote, ask them a question about the match up. For example:
Creating a list of prompts by hand could be cumbersome. Perhaps a generative text LLM could help here (i.e. ChatGPT)
Describe alternatives you've considered
N/A
Additional context
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.