質問編集履歴
2
解決
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,15 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
### 該当のソースコード
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
```
|
30
|
-
|
31
|
-
https://45.gigafile.nu/0102-da16c9434027d6e1a05e84f4b9bd3b22b
|
32
|
-
|
33
|
-
```
|
34
26
|
|
35
27
|
|
36
28
|
|
1
ソースコードの張り直し
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,63 +26,9 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
```
|
29
|
+
```
|
30
30
|
|
31
|
-
# メッセージ受信時に動作する処理
|
32
|
-
|
33
|
-
@client.event
|
34
|
-
|
35
|
-
async def on_message(message):
|
36
|
-
|
37
|
-
# メッセージ送信者がBotだった場合は無視する
|
38
|
-
|
39
|
-
if message.author.bot:
|
40
|
-
|
41
|
-
return
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if not message.author.bot:
|
46
|
-
|
47
|
-
|
31
|
+
https://45.gigafile.nu/0102-da16c9434027d6e1a05e84f4b9bd3b22b
|
48
|
-
|
49
|
-
data = f.read()
|
50
|
-
|
51
|
-
f.close()
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
#日本語
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
#IMP Setting
|
60
|
-
|
61
|
-
if lang == 1:
|
62
|
-
|
63
|
-
#サーバー言語 English
|
64
|
-
|
65
|
-
if message.content == "$_IMP_Lang_English_Guild":
|
66
|
-
|
67
|
-
imp_text = message.content
|
68
|
-
|
69
|
-
file2 = str(message.guild.id)
|
70
|
-
|
71
|
-
file = "IMP_Langsetting_" +file2 + ".txt"
|
72
|
-
|
73
|
-
embed = discord.Embed(title="Succused",description="I set the display language of IMP to English.",color=discord.Colour.green()) #16進数カラーコード
|
74
|
-
|
75
|
-
#↓↓ 49行目
|
76
|
-
|
77
|
-
await message.channel.send(embed=embed)
|
78
|
-
|
79
|
-
f = open(file,'w')
|
80
|
-
|
81
|
-
f.write('0')
|
82
|
-
|
83
|
-
f.close()
|
84
|
-
|
85
|
-
print('Succused')
|
86
32
|
|
87
33
|
```
|
88
34
|
|