randydev commited on
Commit
87227df
·
verified ·
1 Parent(s): fa5d446
Files changed (1) hide show
  1. main.py +11 -12
main.py CHANGED
@@ -30,7 +30,7 @@ response = await OldAkenoXToJs.randydev(
30
  "ai/cohere/command-plus",
31
  api_key="{api_key}",
32
  custom_dev_fast=True,
33
- query="what is AkenoX AI?",
34
  chatHistory=[],
35
  system_prompt="You are a helpful AI assistant designed to provide clear and concise responses."
36
  )
@@ -74,11 +74,10 @@ CUSTOM_KEY = """
74
  We’re excited to have you here! Here’s what you can enjoy:
75
 
76
  ✨ **Features**:
77
- - **V1**: Free and unlimited access for all users.
78
  - **V2**: Premium features with a 30-day free trial.
79
 
80
- 🔒 **Your Safety Matters**:
81
- If you encounter any issues or feel harassed, please contact our support team immediately.
82
  """
83
 
84
  def get_user_agent() -> str:
@@ -181,7 +180,7 @@ async def cb_custom_key(client, query):
181
  @client.on_callback_query(filters.regex("^banned_and_key"))
182
  async def cb_banned_and_key(client, query):
183
  user_id = query.from_user.id
184
- url = "https://randydev-ryu-js.hf.space/api/v1/key/ban-and-delete"
185
  params = {"user_id": user_id}
186
  response = requests.post(
187
  url,
@@ -217,8 +216,8 @@ async def cb_api_key_upgraded(client, query):
217
  @client.on_callback_query(filters.regex("run_cohere"))
218
  async def cb_run_cohere(client, query):
219
  user_id = query.from_user.id
220
- url = "https://randydev-ryu-js.hf.space/api/v2/key/generate-key"
221
- url_two = "https://randydev-ryu-js.hf.space/api/v1/ai/cohere/command-plus"
222
  response = requests.post(
223
  url,
224
  params={"user_id": user_id},
@@ -249,7 +248,7 @@ async def cb_run_cohere(client, query):
249
  @client.on_callback_query(filters.regex("example_cohere"))
250
  async def cb_new_cohere(client, query):
251
  user_id = query.from_user.id
252
- url = "https://randydev-ryu-js.hf.space/api/v2/key/generate-key"
253
  response = requests.post(
254
  url,
255
  params={"user_id": user_id},
@@ -294,7 +293,7 @@ async def cb_new_revokekey(client, query):
294
  if not query.from_user.username:
295
  return await query.answer("Required username first", True)
296
  try:
297
- url = "https://randydev-ryu-js.hf.space/api/v1/key/revoked-key"
298
  response = requests.post(
299
  url,
300
  params={
@@ -370,7 +369,7 @@ async def cb_new_revokekey(client, query):
370
  async def cb_new_keyprem(client, query):
371
  user_id = query.from_user.id
372
  try:
373
- url = "https://randydev-ryu-js.hf.space/api/v2/key/generate-key"
374
  response = requests.post(
375
  url,
376
  params={"user_id": user_id},
@@ -439,8 +438,8 @@ async def cb_new_key(client, query):
439
  if not query.from_user.username:
440
  return await query.answer("Required username first", True)
441
 
442
- url = "https://randydev-ryu-js.hf.space/api/v1/key/generate-key"
443
- url_two = f"https://randydev-ryu-js.hf.space/api/v1/user/check-ban?user_id={user_id}"
444
  try:
445
  response = requests.post(
446
  url,
 
30
  "ai/cohere/command-plus",
31
  api_key="{api_key}",
32
  custom_dev_fast=True,
33
+ query="what is Ryzenth AI?",
34
  chatHistory=[],
35
  system_prompt="You are a helpful AI assistant designed to provide clear and concise responses."
36
  )
 
74
  We’re excited to have you here! Here’s what you can enjoy:
75
 
76
  ✨ **Features**:
77
+ - **V1**: (All Downloader) Free and unlimited access for all users.
78
  - **V2**: Premium features with a 30-day free trial.
79
 
80
+ ~ NB Developers Team
 
81
  """
82
 
83
  def get_user_agent() -> str:
 
180
  @client.on_callback_query(filters.regex("^banned_and_key"))
181
  async def cb_banned_and_key(client, query):
182
  user_id = query.from_user.id
183
+ url = "https://ryzenth-api.onrender.com/api/v1/key/ban-and-delete"
184
  params = {"user_id": user_id}
185
  response = requests.post(
186
  url,
 
216
  @client.on_callback_query(filters.regex("run_cohere"))
217
  async def cb_run_cohere(client, query):
218
  user_id = query.from_user.id
219
+ url = "https://ryzenth-api.onrender.com/api/v2/key/generate-key"
220
+ url_two = "https://ryzenth-api.onrender.com/api/v1/ai/cohere/command-plus"
221
  response = requests.post(
222
  url,
223
  params={"user_id": user_id},
 
248
  @client.on_callback_query(filters.regex("example_cohere"))
249
  async def cb_new_cohere(client, query):
250
  user_id = query.from_user.id
251
+ url = "https://ryzenth-api.onrender.com/api/v2/key/generate-key"
252
  response = requests.post(
253
  url,
254
  params={"user_id": user_id},
 
293
  if not query.from_user.username:
294
  return await query.answer("Required username first", True)
295
  try:
296
+ url = "https://ryzenth-api.onrender.com/api/v1/key/revoked-key"
297
  response = requests.post(
298
  url,
299
  params={
 
369
  async def cb_new_keyprem(client, query):
370
  user_id = query.from_user.id
371
  try:
372
+ url = "https://ryzenth-api.onrender.com/api/v2/key/generate-key"
373
  response = requests.post(
374
  url,
375
  params={"user_id": user_id},
 
438
  if not query.from_user.username:
439
  return await query.answer("Required username first", True)
440
 
441
+ url = "https://ryzenth-api.onrender.com/api/v1/key/generate-key"
442
+ url_two = f"https://ryzenth-api.onrender.com/api/v1/user/check-ban?user_id={user_id}"
443
  try:
444
  response = requests.post(
445
  url,