質問編集履歴
1
改行ミス等の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,12 @@
|
|
28
28
|
|
29
29
|
client = commands.Bot(command_prefix = '_')
|
30
30
|
|
31
|
+
|
32
|
+
|
33
|
+
ddb = DiscordComponents(client)
|
34
|
+
|
35
|
+
|
36
|
+
|
31
37
|
tasu=[[
|
32
38
|
|
33
39
|
Button(style=ButtonStyle.red, label="1"),
|
@@ -48,17 +54,15 @@
|
|
48
54
|
|
49
55
|
@commands.has_permissions(administrator=True)
|
50
56
|
|
51
|
-
async def
|
57
|
+
async def pura(ctx):
|
52
58
|
|
53
59
|
Voting1 = Voting2 = Voting3 = pura = 0
|
54
|
-
|
55
|
-
name = [member.name for member in ctx.author.voice.channel.members]
|
56
60
|
|
57
61
|
now = datetime.datetime.now()
|
58
62
|
|
59
63
|
delta = datetime.datetime.now()+ datetime.timedelta(minutes=5)
|
60
64
|
|
61
|
-
embed = discord.Embed(title="",description='足し算\n' + str(Voting1) + "+" + str(Voting2) + "+" +
|
65
|
+
embed = discord.Embed(title="",description='足し算\n' + str(Voting1) + "+" + str(Voting2) + "+" + str(Voting3) + "=" + str(pura),color=0xff0000,timestamp=now)
|
62
66
|
|
63
67
|
m = await ctx.send(embed=embed,components=tasu, type=7)
|
64
68
|
|
@@ -110,9 +114,7 @@
|
|
110
114
|
|
111
115
|
embed = discord.Embed(title="",description='足し算\n\n結果:' + str(pura),color=0xff0000,timestamp=now)
|
112
116
|
|
113
|
-
await res.respond(embed=embed,components=tasu,type=7)
|
117
|
+
await res.respond(embed=embed,components=tasu,type=7)
|
114
|
-
|
115
|
-
|
116
118
|
|
117
119
|
```
|
118
120
|
|