Spaces:
Paused
Paused
Update bot_main.py
Browse files- bot_main.py +2 -2
bot_main.py
CHANGED
|
@@ -132,7 +132,7 @@ safety_settings = [
|
|
| 132 |
},
|
| 133 |
]
|
| 134 |
model = genai.GenerativeModel("gemini-pro", safety_settings=safety_settings)
|
| 135 |
-
def generate_content1(topic
|
| 136 |
base=["我從不覺得在___快樂過","一但加入了___就再也回不去了","你們滿腦子只想著__","還真是_____呢","為什麼麼要___(動詞)____(名詞)?"]
|
| 137 |
import random
|
| 138 |
base=random.sample(base,1)
|
|
@@ -173,7 +173,7 @@ def create_bad_message(topic,n=10):
|
|
| 173 |
|
| 174 |
@bot.hybrid_command(name="重力場",description="重力發言")
|
| 175 |
@app_commands.describe(topic="主題")
|
| 176 |
-
async def join(ctx,topic):
|
| 177 |
messege=create_bad_message(topic)
|
| 178 |
await ctx.send(f'## {messege}', delete_after=100)
|
| 179 |
|
|
|
|
| 132 |
},
|
| 133 |
]
|
| 134 |
model = genai.GenerativeModel("gemini-pro", safety_settings=safety_settings)
|
| 135 |
+
def generate_content1(topic):
|
| 136 |
base=["我從不覺得在___快樂過","一但加入了___就再也回不去了","你們滿腦子只想著__","還真是_____呢","為什麼麼要___(動詞)____(名詞)?"]
|
| 137 |
import random
|
| 138 |
base=random.sample(base,1)
|
|
|
|
| 173 |
|
| 174 |
@bot.hybrid_command(name="重力場",description="重力發言")
|
| 175 |
@app_commands.describe(topic="主題")
|
| 176 |
+
async def join(ctx,topic="樂團"):
|
| 177 |
messege=create_bad_message(topic)
|
| 178 |
await ctx.send(f'## {messege}', delete_after=100)
|
| 179 |
|