質問編集履歴

4

情報修正

2021/10/02 04:34

投稿

Libe
Libe

スコア13

test CHANGED
File without changes
test CHANGED
File without changes

3

情報修正

2021/10/02 04:34

投稿

Libe
Libe

スコア13

test CHANGED
File without changes
test CHANGED
@@ -30,8 +30,6 @@
30
30
 
31
31
  from pprint import pprint
32
32
 
33
- import youtube_dl
34
-
35
33
  import asyncio
36
34
 
37
35
  from datetime import datetime
@@ -44,7 +42,7 @@
44
42
 
45
43
  import traceback
46
44
 
47
- import random
45
+
48
46
 
49
47
 
50
48
 
@@ -116,14 +114,6 @@
116
114
 
117
115
 
118
116
 
119
- @bot.command()
120
-
121
- async def omikuji(ctx):
122
-
123
- result = ["大吉","中吉","小吉","凶","大凶"]
124
-
125
- await ctx.send(f"{ctx.author.mention}おみくじ結果:"+ random.choice(requests))
126
-
127
117
  -------------------------------------------------------------------------------------
128
118
 
129
119
 

2

情報修正

2021/10/02 04:08

投稿

Libe
Libe

スコア13

test CHANGED
File without changes
test CHANGED
@@ -4,23 +4,7 @@
4
4
 
5
5
  ```
6
6
 
7
- Traceback (most recent call last):
8
-
9
- File "main.py", line 104, in <module>
10
-
11
- client = LibeClient()
12
-
13
- File "main.py", line 72, in __init__
14
-
15
- self.my_background_task.star
16
-
17
- AttributeError: 'LibeClient' object has no attribute 'my_background_task'
18
-
19
- ---
7
+ 今の所なし
20
-
21
-
22
-
23
-
24
8
 
25
9
 
26
10
 
@@ -176,10 +160,6 @@
176
160
 
177
161
 
178
162
 
179
- self.my_background_task.star
180
-
181
-
182
-
183
163
  async def on_message(self, message):
184
164
 
185
165
 

1

情報追加

2021/10/02 03:11

投稿

Libe
Libe

スコア13

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
- ```出ているエラーコード
1
+ 出ているエラーコード
2
+
3
+
4
+
2
-
5
+ ```
3
-
4
6
 
5
7
  Traceback (most recent call last):
6
8
 
@@ -14,19 +16,21 @@
14
16
 
15
17
  AttributeError: 'LibeClient' object has no attribute 'my_background_task'
16
18
 
19
+ ---
20
+
21
+
22
+
23
+
24
+
25
+
26
+
17
- ```
27
+ ```
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
28
+
27
- ```main.py
29
+ main.py
30
+
31
+
32
+
28
-
33
+ ```
29
-
30
34
 
31
35
  import discord
32
36