Spaces:
Paused
Paused
add
Browse files- bot_main.py +4 -2
bot_main.py
CHANGED
|
@@ -50,7 +50,9 @@ def get_pick_embed(player):
|
|
| 50 |
solgan = ["我從不覺得在召喚峽谷快樂過","一但加入了召喚峽谷就再也回不去了","我們的遊戲就是要讓你們不開心","你們的不開心就是我們的快樂","你們滿腦子只想著自己","還真是虛情假義呢"]
|
| 51 |
|
| 52 |
return embed
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
async def pick(ctx, channel_name="",other_user=""):
|
| 55 |
# 搜尋指定名稱的語音頻道
|
| 56 |
voice_channel = discord.utils.get(ctx.guild.voice_channels, name=channel_name)
|
|
@@ -62,7 +64,7 @@ async def pick(ctx, channel_name="",other_user=""):
|
|
| 62 |
if(other_user != ""):
|
| 63 |
member_names.extend(other_user.split(" "))
|
| 64 |
if(len(member_names) == 0):
|
| 65 |
-
await ctx.send("
|
| 66 |
return
|
| 67 |
embed = get_pick_embed(member_names)
|
| 68 |
await ctx.send(embed=embed)
|
|
|
|
| 50 |
solgan = ["我從不覺得在召喚峽谷快樂過","一但加入了召喚峽谷就再也回不去了","我們的遊戲就是要讓你們不開心","你們的不開心就是我們的快樂","你們滿腦子只想著自己","還真是虛情假義呢"]
|
| 51 |
|
| 52 |
return embed
|
| 53 |
+
|
| 54 |
+
@bot.hybrid_command(description="抽路線指令")
|
| 55 |
+
@bot.description(channel_name="語音聊天室名稱",other_user="人名1 人名2 ...")
|
| 56 |
async def pick(ctx, channel_name="",other_user=""):
|
| 57 |
# 搜尋指定名稱的語音頻道
|
| 58 |
voice_channel = discord.utils.get(ctx.guild.voice_channels, name=channel_name)
|
|
|
|
| 64 |
if(other_user != ""):
|
| 65 |
member_names.extend(other_user.split(" "))
|
| 66 |
if(len(member_names) == 0):
|
| 67 |
+
await ctx.send("沒東東")
|
| 68 |
return
|
| 69 |
embed = get_pick_embed(member_names)
|
| 70 |
await ctx.send(embed=embed)
|