1
这个提交包含在:
@ -1 +1 @@
|
||||
ipconfig
|
||||
taskkill /f /im Chrome.exe
|
||||
2
Money.js
2
Money.js
@ -48,7 +48,7 @@ exports.add={
|
||||
var msg = info.message;
|
||||
const date = new Date();
|
||||
if(msg=="签到"||msg.substr(0,8)=="[CQ:sign"){
|
||||
var data = Core.frame.ReadSystemConfig("签到");
|
||||
var data = Core.frame.ReadSystemConfig("签到");
|
||||
if(data[Core.GetUser(info["user_id"])]==date.getFullYear().toString()+date.getMonth().toString()+date.getDay().toString()){
|
||||
Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info["user_id"]))+"已签到了!");
|
||||
}else{
|
||||
|
||||
3
公会系统.js
3
公会系统.js
@ -114,9 +114,8 @@ exports.add={
|
||||
}else{
|
||||
Money.add.Interfaces.GiveUserMoney(Core.GetUser(info["user_id"]),500);
|
||||
Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info["user_id"]))+"领工资成功,获得500RMB,当前余额"+Money.add.Interfaces.GetUserMoney(Core.GetUser(info["user_id"])));
|
||||
var data = JSON.parse(fs.readFileSync("./UserDataBase.json"));
|
||||
data[Core.GetUser(info["user_id"])]=date.getFullYear().toString()+date.getMonth().toString()+date.getDay().toString();
|
||||
fs.writeFileSync("./UserDataBase.json",JSON.stringify(data));
|
||||
Core.frame.WriteSystemConfig("领工资",data);
|
||||
};
|
||||
};
|
||||
if(msg.substr(0,4)=="创建公会"){
|
||||
|
||||
6
抢劫.js
6
抢劫.js
@ -15,10 +15,10 @@ exports.add={
|
||||
UQQ = UQQ.replace(']',"");
|
||||
UQQ = UQQ.replace('抢劫',"");
|
||||
UQQ = UQQ.replace(' ',"");
|
||||
if(MoneyInterfaces.GetUserMoney(UQQ)<500){
|
||||
Core.frame.SendMsg(connect,info,Core.frame.At(UQQ)+"的余额不足500,不可抢劫。");
|
||||
if(MoneyInterfaces.GetUserMoney(UQQ)<1000){
|
||||
Core.frame.SendMsg(connect,info,Core.frame.At(UQQ)+"的余额不足1000,不可抢劫。");
|
||||
}else{
|
||||
var Temp2 = Math.ceil(Math.random() * 500);
|
||||
var Temp2 = Math.ceil(Math.random() * MoneyInterfaces.GetUserMoney(Core.GetUser(UQQ)) * 0.25);
|
||||
if(UQQ == Core.GetUser(info["user_id"])){
|
||||
Temp2 = 0;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户