MKE0108 commited on
Commit
fb727e8
·
verified ·
1 Parent(s): 742c5a7

Update bot_main.py

Browse files
Files changed (1) hide show
  1. bot_main.py +9 -9
bot_main.py CHANGED
@@ -277,11 +277,7 @@ async def check_updates():
277
 
278
 
279
 
280
- import random
281
- import asyncio
282
-
283
- def generate_gay_content(topic):
284
- base = """\
285
  『辛苦了,宵夜要吃點甚麼嗎?』加賽後,部份輕撫ZOD棕色的俐落短髮,半開玩笑地問著。『討厭...我已經吃飽了啦...』ZOD一邊說著,一邊將部份的時光之杖含入嘴裡..
286
 
287
 
@@ -419,15 +415,20 @@ ZOD曾經試著去抵抗大楷,但是毫無用處,經過一連串的洗腦
419
 
420
 
421
  「湯米!」烏龍在辦公室內驚醒,看了看熟睡的大楷,注意到電腦中湯米的訪問聲「還能和你一起播比賽嗎..」烏龍不禁想著,然而他早已成為大楷的肉奴..
422
-
423
  """
424
-
 
 
 
 
 
 
 
425
 
426
  prompt = f"""
427
  {topic}
428
  幫我把以上的故事改成超級惡臭甲文,內容跟下面的範例一樣就好,你只需要輸出內容即可,不用有其他回應上的內容
429
  {base}
430
-
431
  """
432
  try:
433
  model = genai.GenerativeModel("gemini-2.5-flash")
@@ -443,7 +444,6 @@ ZOD曾經試著去抵抗大楷,但是毫無用處,經過一連串的洗腦
443
 
444
  return ans[0] if len(ans) > 0 else None
445
 
446
-
447
  import asyncio
448
 
449
  # 將函數轉為異步版本
 
277
 
278
 
279
 
280
+ g_base = """\
 
 
 
 
281
  『辛苦了,宵夜要吃點甚麼嗎?』加賽後,部份輕撫ZOD棕色的俐落短髮,半開玩笑地問著。『討厭...我已經吃飽了啦...』ZOD一邊說著,一邊將部份的時光之杖含入嘴裡..
282
 
283
 
 
415
 
416
 
417
  「湯米!」烏龍在辦公室內驚醒,看了看熟睡的大楷,注意到電腦中湯米的訪問聲「還能和你一起播比賽嗎..」烏龍不禁想著,然而他早已成為大楷的肉奴..
 
418
  """
419
+ g_base=g_base.strip()
420
+ g_base=g_base.split('\n')
421
+ g_base = [line.strip() for line in g_base if line.strip() and len(line.strip()) > 0]
422
+ def generate_gay_content(topic):
423
+
424
+ import random
425
+ base = random.sample(g_base, 8)
426
+ base = '\n'.join(base)
427
 
428
  prompt = f"""
429
  {topic}
430
  幫我把以上的故事改成超級惡臭甲文,內容跟下面的範例一樣就好,你只需要輸出內容即可,不用有其他回應上的內容
431
  {base}
 
432
  """
433
  try:
434
  model = genai.GenerativeModel("gemini-2.5-flash")
 
444
 
445
  return ans[0] if len(ans) > 0 else None
446
 
 
447
  import asyncio
448
 
449
  # 將函數轉為異步版本