回答編集履歴
1
ミス
answer
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
//24時間起動に必要(web)
|
2
1
|
const http = require('http');
|
3
2
|
http.createServer(function (req, res) {
|
4
3
|
res.write("login");
|
@@ -7,11 +6,10 @@
|
|
7
6
|
|
8
7
|
const child_process = require('child_process')
|
9
8
|
|
10
|
-
//再起動
|
11
9
|
client.on('message', message => {
|
12
10
|
if (message.content.startsWith('b.reboot')) {
|
13
|
-
if (!message.member.permissions.has("BAN_MEMBERS")) return message.channel.send('
|
11
|
+
if (!message.member.permissions.has("BAN_MEMBERS")) return message.channel.send('管理者のみ使用可能です');
|
14
|
-
if (!message.author.id ==
|
12
|
+
if (!message.author.id ==コマンドが使用できる人のID) return;
|
15
13
|
message.channel.send(
|
16
14
|
{embed: {
|
17
15
|
color: 0x0032cfc,
|