Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
223 subscribers
1.04K photos
29 videos
17 files
743 links
tgcore is open source. Built for production Telegram apps.

https://github.com/TeamKillerX/tgcore/
Download Telegram
Upgrade to v2.3.6 > v2.3.7

- Added hugging
- Added fetch()
SABAR DULU, GUA LAGI BIKIN LIBRARY RYZENTH JS YANG BARU (Akenoai pindah ke Ryzenth JS) 🗿

Ryzenth JS Versi JavaScript/TypeScript

Fitur: Support OpenAI, Gemini, Grok, dll.
🙏1
Maintenance dulu (mirip Ryzenth PY)
import { RyzenthApiClient } from "./ryzenth-client";

const clients = new RyzenthApiClient(
{
demo1: {
baseURL: "https://api.example.demo2",
headers: { Authorization: "Bearer test" },
rateLimit: 100
},
demo2: {
baseURL: "https://api.example.demo2",
headers: { "x-api-key": "demo" }
}
},
true
);

async function main() {
const res = await clients.get("demo1", "/api/endpoint", { query: "query" });
console.log(res);

const chat = await clients.post("demo2", "/chat", {
messages: [{ role: "user", content: "Demo Test" }]
});
console.log(chat);
}

main();
Disclaimer:

All API endpoints provided under the Ryzenth domains are intended for development, testing, and educational purposes only.

Official API documentation is available at
https://api.ryzenths.dpdns.org/api-doc

Experimental endpoints may be served via
https://tryhack.ryzenths.dpdns.org/api/

File upload and CDN services are provided under
https://cdn.ryzenths.dpdns.org/api/upload

Examples (Don't try this):
https://tryhack.ryzenths.dpdns.org/api/v3/openai/generate-key


We do not guarantee uptime, data integrity, or backward compatibility for these endpoints. Usage is at your own risk. By accessing any of the above URLs, you agree that the maintainers are not responsible for any potential misuse, data loss, or damages.
😱1
You can simple this (without import)

import Ryzenth

response = await Ryzenth._base_client.fetch(
Ryzenth.types.MakeFetch(
url=Ryzenth._shared.TOOL_DOMAIN_MAP.get("ryzenth-v2") + "/api/uptime",
post=False,
return_json=True
)
)

response_2 = await Ryzenth._client.RyzenthApiClient(
tools_name=["ryzenth-v2"],
api_key={"ryzenth-v2": [{}]},
rate_limit=100,
use_default_headers=True
).get(
tool="ryzenth-v2",
path="/api/uptime",
timeout=10,
use_type=Ryzenth.enums.ResponseType.JSON
)
gak pernah baca docs 😂🤣
Added ghibli: https://github.com/TeamKillerX/Ryzenth/commit/437ef5be0a10cf70dbde2385152883346a096030
from Ryzenth import RyzenthTools

rt = RyzenthTools()

image = rt.aio.images

response = await image.create_openai_to_ghibli_edit("example/to/create.jpg")

data = await response.to_dict()

file_jpg = image.request.to_buffer(
data["data"]["image"]["result"],
return_image_base64=True
)
print(file_jpg)
DEV ITU JELAS

Kalo lo pake nickname "Dev", berarti lo harus ngerti basic:

- ✅ Bisa baca error (jangan langsung screenshot trus nangis)
- ✅ Bisa query sendiri (Google & Stackoverflow itu temen, bukan musuh)
- ✅ Bisa buka docs (jangan males scroll, baca dulu baru nanya)
- ✅ Ngerti tools/framework yang lo pake (jangan cuma copas doang)

❌ BUKAN sekadar tempel "Dev" di belakang nama, tapi tiap ada masalah malah nanya:
Ada yang jago query ga? Fee ada kok
Tolong donk, error nih... 🙏

DEV SEJATI =
1. Belajar dulu: otak dipake, jangan cuma buat hiasan
2. Baca docs: documentation is your best friend
3. Coba sendiri: trial & error itu wajib
4. Baru diskusi kalo bener² mentok

Kalo lo masih sering nanya hal yang bisa di Google dalam 5 detik, mending ganti nickname dulu deh

Meme: YOU NEVER READ DOCS, don’t ask the group
Share ke grup lu 🗿
ghibli style (sabar dulu) 🗿
MAKANYA INI:
JANGAN ASAL CODING TANPA BACA DOCS

Inilah akibatnya kalo tutorialnya cuma lewat tiktok
CARA JANGAN TANYA?

NICKNAME "DEV":
Fix bang, bantuan dong tolong help Error nih
Kenapa ya ini? Ga bisa jalan...😭

USER NON-NICKNAME:
Diem... scroll... baca docs... coba sendiri...
Google dulu... stackoverflow... trial error... 🤫

KENAPA "DEV" SELALU NANYA?
1. Gak baca docs: males scroll, mau instant
2. Gak coba sendiri: mau langsung dikasih jawaban
3. Gak otak atik: takut error makin parah

💀 BAHAYA NYA:
- Tanya mulu ke orang lain = bunuh skill development lu sendiri
- Developer sejati lahir dari frustration dan debugging berjam²

CONTOH PERBEDAAN:
❌ DEV ABAL²:
Bang, cara query WHERE di MongoDB gimana?

✅ DEV BENERAN:
Sudah coba baca dokumentasi MongoDB tentang operators?
Sudah coba $eq atau $in?
Forwarded from Your never read docs
🔥 ATURAN LEVEL "DEV" BERDASARKAN NICKNAME & USERNAME

SKALA 1-10 (DARI NEWBIE TO LEGEND):

LEVEL 1-3: 🟢 NEWBIE
@python_newbie
- ❌ Sering tanya hal dasar
- ❌ Gak baca docs
- ❌ Langsung nanya tanpa Google
- ✅ Masih semangat belajar

LEVEL 4-6: 🟡 INTERMEDIATE
@coder_man
- ✅ Sudah bisa baca error
- ✅ Sudah pakai Google & Stackoverflow
- ❌ Masih suka tanya hal medium
- ✅ Mulai kontribusi open source

LEVEL 7-8: 🔴 ADVANCED
@fullstack_dev
- ✅ Sudah bisa solve problem kompleks
- ✅ Sering bantu orang di forum
- ✅ Sudah punya project sendiri
- ❌ Masih pakai embel² "dev"

LEVEL 9-10: 🐉 LEGEND
@zxyeor
- ✅ Gak pake embel² "dev"
- ✅ Nickname biasa aja (bahkan aneh)
- ✅ Orang yang nanya ke mereka
- ✅ Code mereka yang dipakai orang

@docnickname (THE SILENT KILLER):
- ✅ Diam tapi produktif
- ✅ Gak flexing tapi karya nyata
- ✅ Baca docs tanpa complain
- ✅ Solve error sendiri

Yang nickname nya masih pake embel² "Dev"maybe it's time to step up your game
Me 😎
await image.create_ghibli_to_edit("example/to/create.jpg", style="ghibli.totoro")

ghibli style list support:
- ghibli.default
- ghibli.spirited_away
- ghibli.totoro
- ghibli.mononoke
- ghibli.kiki
- ghibli.howl

Updated: https://pypi.org/project/Ryzenth/2.3.9/
🔥 BANDINGIN TEAM DEV VS SOLO DEV STYLE

Iya nih, bedanya kerasa banget 😂

👨‍👩‍👧‍👦 TEAM DEV STYLE:
members_list = []
async for member in c.get_chat_members(message.chat.id):
if member.user.is_premium:
members_list.append(member.user.id)
return len(members_list)

is_apple = True
if is_apple:
print("makan")
else:
print("gak makan")

🥷 SOLO DEV STYLE:
return len([
member.user.id
async for member in c.get_chat_members(message.chat.id)
if member.user.is_premium
])

is_apple = True
return "makan" if is_apple else "gak makan"
Update now
# old version (before) v2.3.9
image = rt.aio.images

response = await image.create_openai_to_ghibli_edit("example/to/create.jpg")

# new features (after) v2.4.0
result1 = await rt.aio.ghibli.totoro.run("foto.png")
result2 = await rt.aio.ghibli.mononoke.run("foto.png")
result3 = await rt.aio.ghibli.spirited_away.run("foto.png")