Skip to content

Commit 8f26575

Browse files
authored
Merge pull request #2 from LovelyA72/patch-1
Patch 1
2 parents 645ad0c + e90d46f commit 8f26575

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/LocalSettings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# 与YeZiiBot玩得开心~
99
#
1010

11+
## YeziiBot's name. e.g. 何小绫
12+
$wgBotName = "";
13+
1114
## Manager's QQ ID goes here
1215
$wgUserID = "";
1316

src/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
use CoolQSDK\CoolQSDK;
88

9+
if($wgBotName==NULL){
10+
$wgBotName="YeziiBot";
11+
}
12+
913
$message = null;
1014

1115
$CoolQ = new CoolQSDK('127.0.0.1',5700,'yourtokenhere');

0 commit comments

Comments
 (0)